diff options
author | Adrian Thurston <thurston@complang.org> | 2015-11-05 17:40:35 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-11-05 17:40:35 -0500 |
commit | 883797b32e3a4915bf81f801946cda6798e019c9 (patch) | |
tree | 4f4ed88b5ab78ef307f3219b7c54a5660490ae69 /src/colm.lm | |
parent | 80b9fc661abe6f37853bc12889f0443a1d6c65a9 (diff) | |
download | colm-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.lm | 2 |
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 |