A question about parsing

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu