diff options
author | Adrian Thurston <thurston@complang.org> | 2012-07-16 08:44:32 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-07-16 08:44:32 -0400 |
commit | b70141a3450ac20223effaa989f3103798b834b7 (patch) | |
tree | aefdc8e2559156e47e155d715756b7b496ac2da6 | |
parent | 8197dbc598378f0195de6c28d4c3edfebfbccfaf (diff) | |
download | colm-b70141a3450ac20223effaa989f3103798b834b7.tar.gz |
accum list needs to be right recursive
Necessary to achieve correct ambiguity resolution. Right recursion gets us
longer matches first.
-rw-r--r-- | src/lmparse.kl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lmparse.kl b/src/lmparse.kl index 60fee978..3c9515e1 100644 --- a/src/lmparse.kl +++ b/src/lmparse.kl @@ -740,7 +740,7 @@ accumulate: init_repl_list accum_list; # replItemList->append( replItem ); # }; -accum_list: accum_list accum; +accum_list: accum accum_list; accum_list: accum; init_accum_list: |