public ParserStackEntry<StackObject> translate(ParserState state,final Rule rule) throws SyntaxError {
ParserStackEntry<StackObject> r = state.reductions ;
for(int i = 0; i < rule.rhs.size(); i++) {
r = r.tail ;
}
Position end = currTokenPositionRange.end ;
Position start = rule.rhs.isEmpty() ? end : state.reductions.head.range.start ;
PositionRange range = new PositionRange(start,end);
Object obj = parseTable.reduce(rule,this,state,range) ;
r = new ParserStackEntry<StackObject>(new StackObject(obj,range),r) ;
return r ;
}