summaryrefslogtreecommitdiff
path: root/src/colm.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-05-04 20:16:45 -0400
committerAdrian Thurston <thurston@colm.net>2018-05-04 20:17:09 -0400
commit4cd76a8dbe465ef293c2c96ba586720c1ab65c08 (patch)
tree9dd0137adde7505cb25ebfb5c0c7bd7cf332aee3 /src/colm.lm
parenta6436943ef56e70e1b18ce72a3f6aa5bf88cff7b (diff)
downloadcolm-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.lm2
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