Package org.asdt.core.internal.antlr

Examples of org.asdt.core.internal.antlr.AS3Parser.expression()


   * expression.
   */
  public static LinkedListTree parseExpr(String expr) {
    AS3Parser parser = ASTUtils.parse(expr + ")");
    try {
      LinkedListTree result = tree(parser.expression());
      ensureRemainingInputIs(parser.getTokenStream(), AS3Parser.RPAREN, expr);
      // zap the trailing ')'
      result.getStopToken().setNext(null);
      return result;
    } catch (RecognitionException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.