summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-10-05 11:15:52 -0400
committerAdrian Thurston <thurston@complang.org>2015-10-05 11:21:55 -0400
commit904ac5cc1675b19249750e3f5492cba720dda4c5 (patch)
tree097fa6eb549809d993ec3ba2e89fdc658becc598 /src/parser.h
parentf19e2b452e5dc2a14a48fe71fa26796b5678b147 (diff)
downloadcolm-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.h2
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 );