A question about parsing
- Posted by axtens_bruce 2 months ago
- 422 views
So I'd like to create a command line tool that does its parameters the way docker does. I'm getting really tired with GUI planning tools and am designing a CLI one (so that I have TOTAL control).
task <title> (creates a task and returns an id) task <id> [dependson <id> ...] task <id> [tag <tag> ...] task <id> description <description>etc.
I suppose I'm asking for a formalised way of defining the DSL but I could do that with regexps. It'd be nice to be able to specify the syntax of the DSL to the extent of giving patterns and then having the underlying code either extract the arguments or notify of error.
task "Task Tool" description "Command-line task management tool" tag "cli" tag "euphoria" dependson "HavTim000" --> Created task "TasToo000"
Thoughts?
-Bruce