diff options
author | Marc Coquand <marc@mccd.space> | 2024-01-12 08:01:25 -0600 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-01-12 08:01:25 -0600 |
commit | 20c5abba2f762e917503e3d613729f12607baf88 (patch) | |
tree | ab9eb3b897c60949483ea2db12c8f7ff382d7391 /lib/parser.ml | |
parent | 014feebff76f5bb5e711a3897ed930d8e4f009c1 (diff) | |
download | fixgen-20c5abba2f762e917503e3d613729f12607baf88.tar.gz fixgen-20c5abba2f762e917503e3d613729f12607baf88.tar.bz2 fixgen-20c5abba2f762e917503e3d613729f12607baf88.zip |
Implement support for dates
Diffstat (limited to '')
-rw-r--r-- | lib/parser.mly | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/parser.mly b/lib/parser.mly index 177daaf..f14550e 100644 --- a/lib/parser.mly +++ b/lib/parser.mly @@ -11,6 +11,9 @@ %token COLON %token DOT %token EOF +%token PAST +%token FUTURE +%token NOW %token INTSYMBOL %token <int> INT %token LBRACE @@ -56,6 +59,15 @@ row: | row_title = id_or_other; EMAIL; COMMA; r = row { Email (row_title, r) } | row_title = id_or_other; EMAIL { Email (row_title, End) } + | row_title = id_or_other; PAST; COMMA; r = row { Past (row_title, r) } + | row_title = id_or_other; PAST { Past (row_title, End) } + + | row_title = id_or_other; FUTURE; COMMA; r = row { Future (row_title, r) } + | row_title = id_or_other; FUTURE { Future (row_title, End) } + + | row_title = id_or_other; NOW; COMMA; r = row { Now (row_title, r) } + | row_title = id_or_other; NOW { Now (row_title, End) } + | row_title = id_or_other; USERNAME; COMMA; r = row { Username (row_title, r) } | row_title = id_or_other; USERNAME { Username (row_title, End) } |