@Override public List<SrcOp> sempred(ActionAST ast) { return list(new SemPred(this, ast)); }
@Override public List<SrcOp> sempred(ActionAST ast) { return list(new SemPred(this, ast)); }
@Override public List<SrcOp> action(ActionAST ast) { return list(new Action(this, ast)); }
@Override public List<SrcOp> action(ActionAST ast) { return list(new Action(this, ast)); }
@Override public List<SrcOp> action(ActionAST ast) { return list(new Action(this, ast)); }
@Override public List<SrcOp> sempred(ActionAST ast) { return list(new SemPred(this, ast)); }
@Override public List<SrcOp> action(ActionAST ast) { return list(new Action(this, ast)); }
@Override public List<SrcOp> sempred(ActionAST ast) { return list(new SemPred(this, ast)); }
@Override public List<SrcOp> getLL1Test(IntervalSet look, GrammarAST blkAST) { return list(new TestSetInline(this, blkAST, look, gen.getTarget().getInlineTestSetWordSize())); }
@Override public List<SrcOp> getLL1Test(IntervalSet look, GrammarAST blkAST) { return list(new TestSetInline(this, blkAST, look, gen.getTarget().getInlineTestSetWordSize())); }
@Override public List<SrcOp> getLL1Test(IntervalSet look, GrammarAST blkAST) { return list(new TestSetInline(this, blkAST, look, gen.getTarget().getInlineTestSetWordSize())); }
@Override public List<SrcOp> getLL1Test(IntervalSet look, GrammarAST blkAST) { return list(new TestSetInline(this, blkAST, look, gen.getTarget().getInlineTestSetWordSize())); }
@Override public List<SrcOp> getLL1Test(IntervalSet look, GrammarAST blkAST) { return list(new TestSetInline(this, blkAST, look, gen.getTarget().getInlineTestSetWordSize())); }
@Override public List<SrcOp> ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args) { InvokeRule invokeOp = new InvokeRule(this, ID, label); // If no manual label and action refs as token/rule not label, we need to define implicit label if ( controller.needsImplicitLabel(ID, invokeOp) ) defineImplicitLabel(ID, invokeOp); AddToLabelList listLabelOp = getAddToListOpIfListLabelPresent(invokeOp, label); return list(invokeOp, listLabelOp); }
@Override public List<SrcOp> ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args) { InvokeRule invokeOp = new InvokeRule(this, ID, label); // If no manual label and action refs as token/rule not label, we need to define implicit label if ( controller.needsImplicitLabel(ID, invokeOp) ) defineImplicitLabel(ID, invokeOp); AddToLabelList listLabelOp = getAddToListOpIfListLabelPresent(invokeOp, label); return list(invokeOp, listLabelOp); }
@Override public List<SrcOp> ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args) { InvokeRule invokeOp = new InvokeRule(this, ID, label); // If no manual label and action refs as token/rule not label, we need to define implicit label if ( controller.needsImplicitLabel(ID, invokeOp) ) defineImplicitLabel(ID, invokeOp); AddToLabelList listLabelOp = getAddToListOpIfListLabelPresent(invokeOp, label); return list(invokeOp, listLabelOp); }
@Override public List<SrcOp> ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args) { InvokeRule invokeOp = new InvokeRule(this, ID, label); // If no manual label and action refs as token/rule not label, we need to define implicit label if ( controller.needsImplicitLabel(ID, invokeOp) ) defineImplicitLabel(ID, invokeOp); AddToLabelList listLabelOp = getAddToListOpIfListLabelPresent(invokeOp, label); return list(invokeOp, listLabelOp); }
@Override public List<SrcOp> ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args) { InvokeRule invokeOp = new InvokeRule(this, ID, label); // If no manual label and action refs as token/rule not label, we need to define implicit label if ( controller.needsImplicitLabel(ID, invokeOp) ) defineImplicitLabel(ID, invokeOp); AddToLabelList listLabelOp = getAddToListOpIfListLabelPresent(invokeOp, label); return list(invokeOp, listLabelOp); }
@Override public List<SrcOp> wildcard(GrammarAST ast, GrammarAST labelAST) { Wildcard wild = new Wildcard(this, ast); // TODO: dup with tokenRef if ( labelAST!=null ) { String label = labelAST.getText(); Decl d = getTokenLabelDecl(label); wild.labels.add(d); getCurrentRuleFunction().addContextDecl(ast.getAltLabel(), d); if ( labelAST.parent.getType() == ANTLRParser.PLUS_ASSIGN ) { TokenListDecl l = getTokenListLabelDecl(label); getCurrentRuleFunction().addContextDecl(ast.getAltLabel(), l); } } if ( controller.needsImplicitLabel(ast, wild) ) defineImplicitLabel(ast, wild); AddToLabelList listLabelOp = getAddToListOpIfListLabelPresent(wild, labelAST); return list(wild, listLabelOp); }
@Override public List<SrcOp> wildcard(GrammarAST ast, GrammarAST labelAST) { Wildcard wild = new Wildcard(this, ast); // TODO: dup with tokenRef if ( labelAST!=null ) { String label = labelAST.getText(); Decl d = getTokenLabelDecl(label); wild.labels.add(d); getCurrentRuleFunction().addContextDecl(ast.getAltLabel(), d); if ( labelAST.parent.getType() == ANTLRParser.PLUS_ASSIGN ) { TokenListDecl l = getTokenListLabelDecl(label); getCurrentRuleFunction().addContextDecl(ast.getAltLabel(), l); } } if ( controller.needsImplicitLabel(ast, wild) ) defineImplicitLabel(ast, wild); AddToLabelList listLabelOp = getAddToListOpIfListLabelPresent(wild, labelAST); return list(wild, listLabelOp); }