diff options
author | Adrian Thurston <thurston@complang.org> | 2014-11-02 10:50:21 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2014-11-02 10:50:21 -0500 |
commit | 7a12881504b6e16387796957dfba3e4d30f5f470 (patch) | |
tree | fdbf71eb75c17d2d8e7ebb15816063ec47bf9cf7 /src/colm.lm | |
parent | 26c0ce006f365f18a3102c74bc011e97b6c314ed (diff) | |
download | colm-7a12881504b6e16387796957dfba3e4d30f5f470.tar.gz |
some initial work on non-tree list types
Can allocate a list type.
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 3c8cc434..06e9e780 100644 --- a/src/colm.lm +++ b/src/colm.lm @@ -42,6 +42,7 @@ lex token ALIAS / 'alias' / token COMMIT / 'commit' / token NEW / 'new' / + token NEW2 / 'new2' / token PREEOF / 'preeof' / token GLOBAL / 'global' / token EOS / 'eos' / @@ -544,6 +545,7 @@ def code_factor | [MAKE_TOKEN POPEN call_arg_list PCLOSE] :MakeToken | [TYPEID LT type_ref GT] :TypeId | [NEW code_factor] :New +| [NEW2 type_ref] :New2 | [CAST LT type_ref GT code_factor] :Cast def type_ref |