diff options
-rw-r--r-- | colm/parsedata.h | 5 | ||||
-rw-r--r-- | colm/pdabuild.cc | 15 |
2 files changed, 1 insertions, 19 deletions
diff --git a/colm/parsedata.h b/colm/parsedata.h index 118cd0d0..ddfb8ad3 100644 --- a/colm/parsedata.h +++ b/colm/parsedata.h @@ -118,8 +118,7 @@ struct Production : loc(loc), 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), - collectIgnoreRegion(0) {} + isLeftRec(false), localFrame(0), lhsField(0), predOf(0) {} static Production* cons( const InputLoc &loc, LangEl *prodName, ProdElList *prodElList, bool prodCommit, CodeBlock *redBlock, int prodId, int prodNum ) @@ -162,8 +161,6 @@ struct Production LangEl *predOf; UnsignedCharVect copy; - - TokenRegion *collectIgnoreRegion; }; struct CmpDefById diff --git a/colm/pdabuild.cc b/colm/pdabuild.cc index 4a82a077..93c0dabc 100644 --- a/colm/pdabuild.cc +++ b/colm/pdabuild.cc @@ -103,21 +103,6 @@ PdaGraph *ProdElList::walk( Compiler *pd, Production *prod ) PdaState *last = prodFsm->addState(); prodFsm->setStartState( last ); - if ( prod->collectIgnoreRegion != 0 ) { -// cerr << "production " << prod->data << " has collect ignore region " << -// prod->collectIgnoreRegion->name << endl; - - /* Use the IGNORE TOKEN lang el for the region. */ - long value = prod->collectIgnoreRegion->ciLel->id; - - PdaState *newState = prodFsm->addState(); - PdaTrans *newTrans = prodFsm->appendNewTrans( last, newState, value, value ); - - newTrans->isShift = true; - newTrans->shiftPrior = 0; // WAT - last = newState; - } - int prodLength = 0; for ( Iter prodEl = first(); prodEl.lte(); prodEl++, prodLength++ ) { //PdaGraph *itemFsm = prodEl->walk( pd ); |