Package org.allspice.parser

Examples of org.allspice.parser.Translation


   *
   */
  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) ;
  }
View Full Code Here

TOP

Related Classes of org.allspice.parser.Translation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.