diff options
author | Adrian Thurston <thurston@complang.org> | 2015-10-08 18:15:39 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-10-08 18:15:39 -0400 |
commit | a16df3c2ed1163691eb1af042a1797d1a4895441 (patch) | |
tree | 6eee0759cb4ca03798af5e757a249965b156bef0 /src/colm.lm | |
parent | ccaa108e29f630cea0033d6719f524625d1768b0 (diff) | |
download | colm-a16df3c2ed1163691eb1af042a1797d1a4895441.tar.gz |
reduction actions: add loc reference, elim duplicate labels
Diffstat (limited to 'src/colm.lm')
-rw-r--r-- | src/colm.lm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/colm.lm b/src/colm.lm index 74e83bf5..a74e53c9 100644 --- a/src/colm.lm +++ b/src/colm.lm @@ -361,7 +361,8 @@ lex / token RED_LHS / '$' . '$' / - token RED_RHS / '$' . red_id / + token RED_RHS_REF / '$' . red_id / + token RED_RHS_LOC / '@' . red_id / token red_any / any / end @@ -379,7 +380,9 @@ def host_item | [red_ws] | [red_any] | [RED_LHS] -| [RED_RHS] +| [RED_RHS_REF] +| [RED_RHS_LOC] +| [RED_OPEN HostItems: host_item* RED_CLOSE] def reduction_item [red_nonterm] :NonTerm commit |