diff options
author | Adrian Thurston <thurston@complang.org> | 2015-10-05 11:15:52 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-10-05 11:21:55 -0400 |
commit | 904ac5cc1675b19249750e3f5492cba720dda4c5 (patch) | |
tree | 097fa6eb549809d993ec3ba2e89fdc658becc598 /src/parser.h | |
parent | f19e2b452e5dc2a14a48fe71fa26796b5678b147 (diff) | |
download | colm-904ac5cc1675b19249750e3f5492cba720dda4c5.tar.gz |
added syntax dedicated to reductions
This avoids interferrence with existing parsing code. Calling the commit/reduce
code only if the reduce construct is used.
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 f2cf4f3e..38d8b041 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 = true ); + bool used, bool reduce ); PatternItemList *consPatternEl( LangVarRef *varRef, PatternItemList *list ); PatternItemList *patternElNamed( const InputLoc &loc, LangVarRef *varRef, NamespaceQual *nspaceQual, const String &data, RepeatType repeatType ); |