diff options
Diffstat (limited to 'src/compiler.h')
-rw-r--r-- | src/compiler.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/compiler.h b/src/compiler.h index 67d5b40e..d5732b6e 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -152,7 +152,7 @@ struct Production : prodName(0), prodElList(0), prodCommit(false), redBlock(0), prodId(0), prodNum(0), fsm(0), fsmLength(0), uniqueEmptyLeader(0), - isLeftRec(false), localFrame(0), lhsField(0), predOf(0) + isLeftRec(false), localFrame(0), lhsField(0), predOf(0), dotDotDot(false) {} static Production* cons( const InputLoc &loc, LangEl *prodName, ProdElList *prodElList, @@ -170,6 +170,14 @@ struct Production return p; } + static Production *cons( const InputLoc &loc ) + { + Production *p = new Production; + p->loc = loc; + p->dotDotDot = true; + return p; + } + InputLoc loc; LangEl *prodName; ProdElList *prodElList; @@ -198,6 +206,7 @@ struct Production LangEl *predOf; UnsignedCharVect copy; + bool dotDotDot; }; struct CmpDefById |