diff options
author | Adrian Thurston <thurston@colm.net> | 2018-05-04 20:16:45 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-05-04 20:17:09 -0400 |
commit | 4cd76a8dbe465ef293c2c96ba586720c1ab65c08 (patch) | |
tree | 9dd0137adde7505cb25ebfb5c0c7bd7cf332aee3 /src/colm.lm | |
parent | a6436943ef56e70e1b18ce72a3f6aa5bf88cff7b (diff) | |
download | colm-4cd76a8dbe465ef293c2c96ba586720c1ab65c08.tar.gz |
replacing the void LEL with a keyword and TYPE_VOID (non-tree)
Using LEL was a hack to make it work quickly, usig a non-tree type is the
proper solution.
Diffstat (limited to 'src/colm.lm')
-rw-r--r-- | src/colm.lm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/colm.lm b/src/colm.lm index 99112316..3f719686 100644 --- a/src/colm.lm +++ b/src/colm.lm @@ -55,6 +55,7 @@ lex token DEFAULT / 'default' / token INT / 'int' / token BOOL / 'bool' / + token VOID / 'void' / token MAKE_TOKEN / 'make_token' / token MAKE_TREE / 'make_tree' / @@ -643,6 +644,7 @@ def type_ref [region_qual id opt_repeat] :Id | [INT] :Int | [BOOL] :Bool +| [VOID] :Void | [PARSER LT type_ref GT] :Parser | [LIST LT type_ref GT] :List | [MAP LT KeyType: type_ref COMMA ValType: type_ref GT] :Map |