crutchcorn / WMIControl

WMI scanner, asset management medium, and management software
Mozilla Public License 2.0
12 stars 4 forks source link

Convert WMIControl.py into Lexer #32

Open crutchcorn opened 7 years ago

crutchcorn commented 7 years ago

Currently, WMIControl is a kinda hacky little library that requires a custom Batch script. This is clearly not optimal. We should move our development into turning it into a Lexer using the Parsec library. Now, I know what you're saying Why is this a Lexer? That's so dumb, it's a parser. Perhaps at first it will be, but ideally we could logically separate out to a lexer to take different kinds of files (bash, batch, powershell script, etc), and then pass it off to a parser to let them be handled for each operating system and such. This would allow you to run custom commands, add functionality, etc without weird hacky workarounds.

References: https://pythonhosted.org/parsec/index.html https://pythonhosted.org/parsec/documentation.html https://github.com/sighingnow/parsec.py/blob/master/examples/jsonc.py

crutchcorn commented 7 years ago

To clarify, I mean to create a subset language for these languages that will add extension to the program's usage within WMIControl. Some examples of this could be adding if then statements, variables, etc