Examples of RuleSempredFunction


Examples of org.antlr.v4.codegen.model.RuleSempredFunction

    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);
        }
        rsf.actions.put(g.sempreds.get(p), new Action(delegate, p));
      }
    }
View Full Code Here

Examples of org.antlr.v4.codegen.model.RuleSempredFunction

    }

    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);
        }
        rsf.actions.put(g.sempreds.get(p), new Action(delegate, p));
      }
      else if ( a.getType()== ANTLRParser.ACTION ) {
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.