*
*/
public final Map<Rule,Translation> rules = new HashMap<Rule,Translation>() ;
@Override
public Object reduce(Rule rule, Parser parser,ParserState state,PositionRange range) throws SyntaxError {
Translation t = rules.get(rule) ;
if (t == null) {
return rule.rhs.isEmpty() ? null : state.reductions.head.o ;
}
return t.reduce(range, parser, state) ;
}