diff options
author | Adrian Thurston <thurston@complang.org> | 2012-07-16 08:36:56 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-07-16 08:36:56 -0400 |
commit | b78e265efd244fe3dcee35ea41811a434092c83d (patch) | |
tree | 79d6999ade08d1d21972e49570d66723448ec351 | |
parent | e4514d7b9dd8929f8976c3e746381ef9d4741005 (diff) | |
download | colm-b78e265efd244fe3dcee35ea41811a434092c83d.tar.gz |
disabled the plain code_expr version of accumulate
Must use either "" or [] to wrap the items that go there. This is consistent
with pattern matching and replacement.
-rw-r--r-- | src/lmparse.kl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lmparse.kl b/src/lmparse.kl index 4789bad1..60fee978 100644 --- a/src/lmparse.kl +++ b/src/lmparse.kl @@ -734,11 +734,11 @@ repl_el: code_expr # Accum # accumulate: init_repl_list accum_list; -accumulate: init_repl_list code_expr - final { - ReplItem *replItem = ReplItem::cons( $2->expr->loc, ReplItem::ExprType, $2->expr ); - replItemList->append( replItem ); - }; +#accumulate: init_repl_list code_expr +# final { +# ReplItem *replItem = ReplItem::cons( $2->expr->loc, ReplItem::ExprType, $2->expr ); +# replItemList->append( replItem ); +# }; accum_list: accum_list accum; accum_list: accum; |