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/parser.h | |
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/parser.h')
-rw-r--r-- | src/parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.h b/src/parser.h index 38d8b041..5a0e31cc 100644 --- a/src/parser.h +++ b/src/parser.h @@ -124,7 +124,7 @@ struct BaseParser ConsItemList *list, bool eof ); LangExpr *parseCmd( const InputLoc &loc, bool tree, bool stop, ObjectField *objField, TypeRef *typeRef, FieldInitVect *fieldInitVect, ConsItemList *list, - bool used, bool reduce ); + bool used, bool reduce, const String &reducer ); PatternItemList *consPatternEl( LangVarRef *varRef, PatternItemList *list ); PatternItemList *patternElNamed( const InputLoc &loc, LangVarRef *varRef, NamespaceQual *nspaceQual, const String &data, RepeatType repeatType ); |