summaryrefslogtreecommitdiff
path: root/src/pre_lexer.mll
diff options
context:
space:
mode:
authorKathy Gray2016-07-23 11:59:30 +0100
committerKathy Gray2016-07-23 11:59:30 +0100
commite60e43cb90cf7128cee4f82d84a402ba0cb14dc5 (patch)
tree0ae6b0cd026300d3c1d2be0458a22cb153b2bebc /src/pre_lexer.mll
parent4a1e5a3df739abd747e47fb26f8a21228bd30c75 (diff)
Add a return exp form to Sail, supported in type checker and in interpreter.
TODO: add an event for a return so that rewriters can find and remove them as needed for OCaml and Lem
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 818f8fe6..e6534524 100644
--- a/src/pre_lexer.mll
+++ b/src/pre_lexer.mll
@@ -89,6 +89,7 @@ let kw_table =
("pure", (fun x -> Other));
("rec", (fun x -> Other));
("register", (fun x -> Other));
+ ("return", (fun x -> Other));
("scattered", (fun x -> Other));
("struct", (fun x -> Other));
("sizeof", (fun x -> Other));