Examples of RuleContextListDecl


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

      // for x=r, define <rule-context-type> x and list_x
      String label = labelAST.getText();
      if ( labelAST.parent.getType() == ANTLRParser.PLUS_ASSIGN  ) {
        factory.defineImplicitLabel(ast, this);
        String listLabel = gen.getTarget().getListLabel(label);
        RuleContextListDecl l = new RuleContextListDecl(factory, listLabel, ctxName);
        rf.addContextDecl(ast.getAltLabel(), l);
      }
      else {
        RuleContextDecl d = new RuleContextDecl(factory,label,ctxName);
        labels.add(d);
View Full Code Here

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

        RuleContextDecl d;
        if (idAST.getParent().getType() == ANTLRParser.ASSIGN) {
          d = new RuleContextDecl(factory, label, ctxName);
        }
        else {
          d = new RuleContextListDecl(factory, label, ctxName);
        }

        StructDecl struct = ruleCtx;
        if ( altLabelCtxs!=null ) {
          StructDecl s = altLabelCtxs.get(altLabel);
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.