mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
- Began full command line parser BNF grammar.
This commit is contained in:
parent
598bd3b4ef
commit
a2f8ce41cf
1 changed files with 66 additions and 0 deletions
66
grammar.txt
Normal file
66
grammar.txt
Normal file
|
@ -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 <file>
|
||||||
|
| COLOR
|
||||||
|
| DELETE <id>
|
||||||
|
| INFO <id>
|
||||||
|
| START <id>
|
||||||
|
| DONE <id>
|
||||||
|
| ADD [<tags>] [<attrs>] [<desc>]
|
||||||
|
| LIST [<tags>] [<attrs>] [<desc>]
|
||||||
|
| LONG [<tags>] [<attrs>] [<desc>]
|
||||||
|
| LS [<tags>] [<attrs>] [<desc>]
|
||||||
|
| COMPLETED [<tags>] [<attrs>] [<desc>]
|
||||||
|
| <id> [<tags>] [<attrs>] [<desc>]
|
||||||
|
| <id> <substitution>
|
||||||
|
|
||||||
|
id:
|
||||||
|
\d+
|
||||||
|
| \d{8}-\d{4}-\d{4}-\d{12}
|
||||||
|
|
||||||
|
tags:
|
||||||
|
+<tag>
|
||||||
|
| -<tag>
|
||||||
|
|
||||||
|
tag:
|
||||||
|
\w+
|
||||||
|
|
||||||
|
attrs:
|
||||||
|
<attr>
|
||||||
|
| <attr> <attrs>
|
||||||
|
|
||||||
|
attr:
|
||||||
|
<name>:<value>
|
||||||
|
|
||||||
|
name:
|
||||||
|
\w+
|
||||||
|
|
||||||
|
value:
|
||||||
|
.+
|
||||||
|
|
||||||
|
substitution:
|
||||||
|
/ <pattern> / <pattern> /
|
||||||
|
|
||||||
|
pattern:
|
||||||
|
.+
|
||||||
|
|
||||||
|
file:
|
||||||
|
?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue