- for(Parser.Table.Reduction r : token==null ? state.getEofReductions() : state.getReductions(token)) {
- if (r.numPop==0)
- newReduct(this, null, r); /* ALLOC */
+ if (reducing) {
+ for(Parser.Table.Reduction r : token==null ? state.getEofReductions() : state.getReductions(token)) {
+ if (r.numPop==0) {
+ //r.reduce(this, null, this.phase, r.zero());
+ Reduct red = new Reduct(this, null, r);
+ red.go(); /* ALLOC */
+ }
+ }