Examples of PredAST


Examples of org.antlr.v4.tool.ast.PredAST

  public LinkedHashMap<Integer, PredAST> getIndexToPredicateMap() {
    LinkedHashMap<Integer, PredAST> indexToPredMap = new LinkedHashMap<Integer, PredAST>();
    for (Rule r : rules.values()) {
      for (ActionAST a : r.actions) {
        if (a instanceof PredAST) {
          PredAST p = (PredAST) a;
          indexToPredMap.put(sempreds.get(p), p);
        }
      }
    }
    return indexToPredMap;
View Full Code Here

Examples of org.antlr.v4.tool.ast.PredAST

    }

    Grammar g = getGrammar();
    for (ActionAST a : r.actions) {
      if ( a instanceof PredAST ) {
        PredAST p = (PredAST)a;
        RuleSempredFunction rsf = parser.sempredFuncs.get(r);
        if ( rsf==null ) {
          rsf = new RuleSempredFunction(delegate, r, function.ctxType);
          parser.sempredFuncs.put(r, rsf);
        }
View Full Code Here

Examples of org.antlr.v4.tool.ast.PredAST

      raf = new RuleActionFunction(delegate, r, ctxType);
    }

    for (ActionAST a : r.actions) {
      if ( a instanceof PredAST ) {
        PredAST p = (PredAST)a;
        RuleSempredFunction rsf = lexer.sempredFuncs.get(r);
        if ( rsf==null ) {
          rsf = new RuleSempredFunction(delegate, r, ctxType);
          lexer.sempredFuncs.put(r, rsf);
        }
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.