Examples of TokenTypeDecl


Examples of org.antlr.v4.codegen.model.decl.TokenTypeDecl

  public TestSetInline addCodeForLookaheadTempVar(IntervalSet look) {
    List<SrcOp> testOps = factory.getLL1Test(look, ast);
    TestSetInline expr = Utils.find(testOps, TestSetInline.class);
    if (expr != null) {
      Decl d = new TokenTypeDecl(factory, expr.varName);
      factory.getCurrentRuleFunction().addLocalDecl(d);
      CaptureNextTokenType nextType = new CaptureNextTokenType(factory,expr.varName);
      addPreambleOp(nextType);
    }
    return expr;
View Full Code Here

Examples of org.antlr.v4.codegen.model.decl.TokenTypeDecl

  public MatchSet(OutputModelFactory factory, GrammarAST ast) {
    super(factory, ast);
    SetTransition st = (SetTransition)ast.atnState.transition(0);
    expr = new TestSetInline(factory, null, st.set);
    Decl d = new TokenTypeDecl(factory, expr.varName);
    factory.getCurrentRuleFunction().addLocalDecl(d);
    capture = new CaptureNextTokenType(factory,expr.varName);
  }
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.