From a2f8ce41cf76bfa291d26decb8f4255147283cfd Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 17 Jun 2008 22:54:04 -0400 Subject: [PATCH] - Began full command line parser BNF grammar. --- grammar.txt | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 grammar.txt diff --git a/grammar.txt b/grammar.txt new file mode 100644 index 000000000..54460cd3b --- /dev/null +++ b/grammar.txt @@ -0,0 +1,66 @@ + +This is a full BNF grammar for the task command line. It is intended that a +future release of task will incorporate a complete lexer/parser implementing +this grammar. + + +command: + VERSION + | HELP + | PROJECTS + | TAGS + | SUMMARY + | HISTORY + | NEXT + | CALENDAR + | ACTIVE + | OVERDUE + | STATS + | USAGE + | EXPORT + | COLOR + | DELETE + | INFO + | START + | DONE + | ADD [] [] [] + | LIST [] [] [] + | LONG [] [] [] + | LS [] [] [] + | COMPLETED [] [] [] + | [] [] [] + | + +id: + \d+ + | \d{8}-\d{4}-\d{4}-\d{12} + +tags: + + + | - + +tag: + \w+ + +attrs: + + | + +attr: + : + +name: + \w+ + +value: + .+ + +substitution: + / / / + +pattern: + .+ + +file: + ? +