pbeckingham / task

A command line GTD application for managing text todo lists.

This URL has Read+Write access

task / grammar.txt
100644 70 lines (55 sloc) 0.942 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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
  | OLDEST
  | NEWEST
  | EXPORT <file>
  | COLOR
  | DELETE <id>
  | UNDELETE <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:
    ?