summaryrefslogtreecommitdiff
path: root/src/colm.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-11-05 17:40:35 -0500
committerAdrian Thurston <thurston@complang.org>2015-11-05 17:40:35 -0500
commit883797b32e3a4915bf81f801946cda6798e019c9 (patch)
tree4f4ed88b5ab78ef307f3219b7c54a5660490ae69 /src/colm.lm
parent80b9fc661abe6f37853bc12889f0443a1d6c65a9 (diff)
downloadcolm-883797b32e3a4915bf81f801946cda6798e019c9.tar.gz
split reducers into their own class
Previously selected with a runtime int. Using reduction name as the class name.
Diffstat (limited to 'src/colm.lm')
-rw-r--r--src/colm.lm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/colm.lm b/src/colm.lm
index 9401ad47..e50898a9 100644
--- a/src/colm.lm
+++ b/src/colm.lm
@@ -629,7 +629,7 @@ def code_factor
| [PARSE opt_capture type_ref opt_field_init accumulate] :Parse
| [PARSE_TREE opt_capture type_ref opt_field_init accumulate] :ParseTree
| [PARSE_STOP opt_capture type_ref opt_field_init accumulate] :ParseStop
-| [REDUCE type_ref opt_field_init accumulate] :Reduce
+| [REDUCE id type_ref opt_field_init accumulate] :Reduce
| [CONS opt_capture type_ref opt_field_init constructor] :Cons
| [MATCH var_ref pattern] :Match
| [string] :String