summaryrefslogtreecommitdiff
path: root/src/pre_lexer.mll
diff options
context:
space:
mode:
authorKathy Gray2016-03-02 17:04:09 +0000
committerKathy Gray2016-03-02 17:04:31 +0000
commit9d6875ba4147e3f52b3251bab77e52df03257aa3 (patch)
tree9eb0e06cb82527ea7e20a686a307efa973d2be77 /src/pre_lexer.mll
parente120d223a007587b1e741b69e0e46bfb4c2ea6c8 (diff)
Add new language feature to permit definitions of items of kind Nat, etc as well as items of kind Type.
Syntax for the feature is: def Nat id = nexp Note: some useful nexps may not parse properly. All typedef forms can also be used as def Type ... if desired, but this is not required.
Diffstat (limited to 'src/pre_lexer.mll')
-rw-r--r--src/pre_lexer.mll1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pre_lexer.mll b/src/pre_lexer.mll
index 8987c0fd..f6ccd3c2 100644
--- a/src/pre_lexer.mll
+++ b/src/pre_lexer.mll
@@ -96,6 +96,7 @@ let kw_table =
("true", (fun x -> Other));
("Type", (fun x -> Other));
("typedef", (fun x -> Typedef));
+ ("def", (fun x -> Def));
("undefined", (fun x -> Other));
("union", (fun x -> Other));
("with", (fun x -> Other));