diff options
author | Adrian Thurston <thurston@complang.org> | 2015-10-05 21:33:09 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-10-05 21:33:09 -0400 |
commit | dc2a84cc6c730f991e5f7c41964f1a81a086aaae (patch) | |
tree | 9fb01c74927e729334eed1f2d296b1b8a06dddda /src/parsetree.h | |
parent | 3e73bf22f0e3819276369f8d1ea3d546002956b9 (diff) | |
download | colm-dc2a84cc6c730f991e5f7c41964f1a81a086aaae.tar.gz |
generate the union and size parse tree according to it
Diffstat (limited to 'src/parsetree.h')
-rw-r--r-- | src/parsetree.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/parsetree.h b/src/parsetree.h index b4cbcf1f..4e4fa8ac 100644 --- a/src/parsetree.h +++ b/src/parsetree.h @@ -919,15 +919,15 @@ typedef BstSet< Namespace*, CmpOrd<Namespace*> > NamespaceSet; struct ReduceNonTerm { - ReduceNonTerm( const InputLoc &loc, TypeRef *nonterm, const String &txt ) + ReduceNonTerm( const InputLoc &loc, TypeRef *nonTerm, const String &txt ) : loc(loc), - nonterm(nonterm), + nonTerm(nonTerm), txt(txt) {} InputLoc loc; - TypeRef *nonterm; + TypeRef *nonTerm; String txt; ReduceNonTerm *prev, *next; @@ -935,15 +935,16 @@ struct ReduceNonTerm struct ReduceAction { - ReduceAction( const InputLoc &loc, TypeRef *nonterm, + ReduceAction( const InputLoc &loc, TypeRef *nonTerm, const String &prod, const String &txt ) : - loc(loc), nonterm(nonterm), prod(prod), + loc(loc), nonTerm(nonTerm), + prod(prod), txt(txt), production(0) {} InputLoc loc; - TypeRef *nonterm; + TypeRef *nonTerm; String prod; String txt; |