aboutsummaryrefslogtreecommitdiff
path: root/lib/lexer.mll
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/lexer.mll
parent014feebff76f5bb5e711a3897ed930d8e4f009c1 (diff)
downloadfixgen-20c5abba2f762e917503e3d613729f12607baf88.tar.gz
fixgen-20c5abba2f762e917503e3d613729f12607baf88.tar.bz2
fixgen-20c5abba2f762e917503e3d613729f12607baf88.zip
Implement support for dates
Diffstat (limited to 'lib/lexer.mll')
-rw-r--r--lib/lexer.mll3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lexer.mll b/lib/lexer.mll
index 1985c2d..1b24847 100644
--- a/lib/lexer.mll
+++ b/lib/lexer.mll
@@ -22,6 +22,9 @@ rule read =
| "name" { NAME }
| "increment" { INCREMENT }
| "username" { USERNAME }
+ | "past" { PAST }
+ | "future" { FUTURE }
+ | "now" { NOW }
| "int" { INTSYMBOL }
| id { IDENTIFIER (Lexing.lexeme lexbuf) }
| "(" { LBRACE }