summaryrefslogtreecommitdiff
path: root/src/parsetree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2017-07-29 17:42:27 -0400
committerAdrian Thurston <thurston@colm.net>2017-07-29 17:50:00 -0400
commit06333fa458655089ffb68594088106cc97090b2e (patch)
tree57c13cdfe90d13c2a8f8c403782b86217acb2452 /src/parsetree.h
parent3f74fc17cee81774ddcc29c0a3560f81f7b60b7d (diff)
downloadcolm-06333fa458655089ffb68594088106cc97090b2e.tar.gz
organizing the reduce code generator
Diffstat (limited to 'src/parsetree.h')
-rw-r--r--src/parsetree.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/parsetree.h b/src/parsetree.h
index e8225fa1..c8393f96 100644
--- a/src/parsetree.h
+++ b/src/parsetree.h
@@ -986,7 +986,9 @@ struct Reduction
Reduction( const InputLoc &loc, String name )
:
loc(loc), name(name),
- needData(0), needLoc(0)
+ needData(0), needLoc(0),
+ postfixBased(false),
+ parserBased(false)
{
static int nextId = 1;
id = nextId++;
@@ -1002,6 +1004,9 @@ struct Reduction
bool *needData;
bool *needLoc;
+ bool postfixBased;
+ bool parserBased;
+
ReduceActionList reduceActions;
ReduceNonTermList reduceNonTerms;
};