From dc2a84cc6c730f991e5f7c41964f1a81a086aaae Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Mon, 5 Oct 2015 21:33:09 -0400 Subject: generate the union and size parse tree according to it --- src/parsetree.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/parsetree.h') 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 > 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; -- cgit v1.2.1