summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-07-16 08:44:32 -0400
committerAdrian Thurston <thurston@complang.org>2012-07-16 08:44:32 -0400
commitb70141a3450ac20223effaa989f3103798b834b7 (patch)
treeaefdc8e2559156e47e155d715756b7b496ac2da6
parent8197dbc598378f0195de6c28d4c3edfebfbccfaf (diff)
downloadcolm-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.kl2
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: