holder[numPop-1] = f;
return reduce(parent, numPop-2, rex, onlychild, target);
}
- public Forest reduce(GSS.Phase.Node parent, GSS.Phase.Node onlychild, GSS.Phase target, Forest rex) {
- return reduce(parent, numPop-1, rex, onlychild, target);
+ public Forest reduce(GSS.Phase.Node parent, GSS.Phase.Node onlychild, Forest rex) {
+ return reduce(parent, numPop-1, rex, onlychild, parent.phase());
}
private Forest zero = null;
} else {
State state = parent.state.gotoSetNonTerminals.get(position.owner());
if (state!=null)
- target.newNode(parent, rex, state, numPop<=0, parent.phase);
+ target.newNode(parent, rex, state, numPop<=0, parent.phase());
}
return rex;
}