aboutsummaryrefslogtreecommitdiff
path: root/lib/parser.ml
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-01-12 08:01:25 -0600
committerMarc Coquand <marc@mccd.space>2024-01-12 08:01:25 -0600
commit20c5abba2f762e917503e3d613729f12607baf88 (patch)
treeab9eb3b897c60949483ea2db12c8f7ff382d7391 /lib/parser.ml
parent014feebff76f5bb5e711a3897ed930d8e4f009c1 (diff)
downloadfixgen-20c5abba2f762e917503e3d613729f12607baf88.tar.gz
fixgen-20c5abba2f762e917503e3d613729f12607baf88.tar.bz2
fixgen-20c5abba2f762e917503e3d613729f12607baf88.zip
Implement support for dates
Diffstat (limited to '')
-rw-r--r--lib/parser.mly12
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) }