summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-10-04 11:40:30 -0400
committerAdrian Thurston <thurston@complang.org>2015-10-04 11:40:30 -0400
commit514d1771d7956df29ea8e9f0c5f0a35d47bc8bc4 (patch)
treeb076ba176a640396c63f8986442ad5613fef893e /src/parser.h
parent672040140417c53b278aa79ac91b8e89a1a3d634 (diff)
downloadcolm-514d1771d7956df29ea8e9f0c5f0a35d47bc8bc4.tar.gz
working on a commit that can execute reduction actions
First track if the result is used. If not, we can remove parse trees at commit points. This is also the time to execute reduction actions so we can load as we parse. Not currently enabled (by way of omitting setting of not-used bit).
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.h b/src/parser.h
index baa08f61..3365ff59 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -116,7 +116,8 @@ struct BaseParser
LangExpr *sendTree( const InputLoc &loc, LangVarRef *varRef,
ConsItemList *list, bool eof );
LangExpr *parseCmd( const InputLoc &loc, bool tree, bool stop, ObjectField *objField,
- TypeRef *typeRef, FieldInitVect *fieldInitVect, ConsItemList *list );
+ TypeRef *typeRef, FieldInitVect *fieldInitVect, ConsItemList *list,
+ bool used = true );
PatternItemList *consPatternEl( LangVarRef *varRef, PatternItemList *list );
PatternItemList *patternElNamed( const InputLoc &loc, LangVarRef *varRef,
NamespaceQual *nspaceQual, const String &data, RepeatType repeatType );