public final SourceGenTriggers.alternative_return alternative() throws RecognitionException { SourceGenTriggers.alternative_return retval = new SourceGenTriggers.alternative_return(); retval.start = input.LT(1); TreeRuleReturnScope a =null; boolean outerMost = inContext("RULE BLOCK"); try { // org/antlr/v4/codegen/SourceGenTriggers.g:86:5: (a= alt[outerMost] ) // org/antlr/v4/codegen/SourceGenTriggers.g:86:7: a= alt[outerMost] { pushFollow(FOLLOW_alt_in_alternative161); a=alt(outerMost); state._fsp--; retval.altCodeBlock =(a!=null?((SourceGenTriggers.alt_return)a).altCodeBlock:null); retval.ops =(a!=null?((SourceGenTriggers.alt_return)a).ops:null); } controller.finishAlternative(retval.altCodeBlock, retval.ops, outerMost); } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } return retval; } // $ANTLR end "alternative"
SET20=(GrammarAST)match(input,SET,FOLLOW_SET_in_blockSet506); match(input, Token.DOWN, null); pushFollow(FOLLOW_atom_in_blockSet508); atom(label, invert); state._fsp--; match(input, Token.UP, null); reportError(re); recover(input,re);
match(input,ELEMENT_OPTIONS,FOLLOW_ELEMENT_OPTIONS_in_elementOptions836); match(input, Token.DOWN, null); pushFollow(FOLLOW_elementOption_in_elementOptions838); elementOption(); state._fsp--; match(input, Token.UP, null); reportError(re); recover(input,re);
public final void dummy() throws RecognitionException { try { // org/antlr/v4/codegen/SourceGenTriggers.g:59:7: ( block[null, null] ) // org/antlr/v4/codegen/SourceGenTriggers.g:59:9: block[null, null] { pushFollow(FOLLOW_block_in_dummy61); block(null, null); state._fsp--; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } } // $ANTLR end "dummy"
match(input,NOT,FOLLOW_NOT_in_atom538); match(input, Token.DOWN, null); pushFollow(FOLLOW_atom_in_atom542); a=atom(label, true); state._fsp--; match(input, Token.UP, null); pushFollow(FOLLOW_range_in_atom552); range21=range(label); state._fsp--; match(input,DOT,FOLLOW_DOT_in_atom567); match(input, Token.DOWN, null); match(input,ID,FOLLOW_ID_in_atom569); pushFollow(FOLLOW_terminal_in_atom571); terminal(label); state._fsp--; match(input, Token.UP, null); match(input,DOT,FOLLOW_DOT_in_atom579); match(input, Token.DOWN, null); match(input,ID,FOLLOW_ID_in_atom581); pushFollow(FOLLOW_ruleref_in_atom583); ruleref(label); state._fsp--; match(input, Token.UP, null);
RULE_REF27=(GrammarAST)match(input,RULE_REF,FOLLOW_RULE_REF_in_ruleref685); if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); ARG_ACTION28=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_ruleref687); pushFollow(FOLLOW_elementOptions_in_ruleref690); elementOptions(); state._fsp--; match(input, Token.UP, null); reportError(re); recover(input,re);
pushFollow(FOLLOW_labeledElement_in_element246); labeledElement3=labeledElement(); state._fsp--; pushFollow(FOLLOW_atom_in_element257); atom4=atom(null, false); state._fsp--; pushFollow(FOLLOW_subrule_in_element267); subrule5=subrule(); state._fsp--; ACTION6=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_element282); omos = controller.action((ActionAST)ACTION6); SEMPRED7=(GrammarAST)match(input,SEMPRED,FOLLOW_SEMPRED_in_element297); omos = controller.sempred((ActionAST)SEMPRED7); ACTION8=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_element311); match(input, Token.DOWN, null); pushFollow(FOLLOW_elementOptions_in_element313); elementOptions(); state._fsp--; match(input, Token.UP, null); SEMPRED9=(GrammarAST)match(input,SEMPRED,FOLLOW_SEMPRED_in_element325); match(input, Token.DOWN, null); pushFollow(FOLLOW_elementOptions_in_element327);
blk=(GrammarAST)match(input,BLOCK,FOLLOW_BLOCK_in_block84); match(input, Token.DOWN, null); match(input,OPTIONS,FOLLOW_OPTIONS_in_block88); match(input, Token.DOWN, null); matchAny(input); match(input, Token.UP, null); pushFollow(FOLLOW_alternative_in_block109); alternative1=alternative(); state._fsp--; match(input, Token.UP, null); reportError(re); recover(input,re);
public void buildNormalRuleFunction(Rule r, RuleFunction function) { CodeGenerator gen = delegate.getGenerator(); // TRIGGER factory functions for rule alts, elements GrammarASTAdaptor adaptor = new GrammarASTAdaptor(r.ast.token.getInputStream()); GrammarAST blk = (GrammarAST)r.ast.getFirstChildWithType(ANTLRParser.BLOCK); CommonTreeNodeStream nodes = new CommonTreeNodeStream(adaptor,blk); walker = new SourceGenTriggers(nodes, this); try { // walk AST of rule alts/elements function.code = DefaultOutputModelFactory.list(walker.block(null, null)); function.hasLookaheadBlock = walker.hasLookaheadBlock; } catch (org.antlr.runtime.RecognitionException e){ e.printStackTrace(System.err); } function.ctxType = gen.getTarget().getRuleFunctionContextStructName(function); function.postamble = rulePostamble(function, r); }
match(input,NOT,FOLLOW_NOT_in_atom538); match(input, Token.DOWN, null); pushFollow(FOLLOW_atom_in_atom542); a=atom(label, true); state._fsp--; match(input, Token.UP, null); pushFollow(FOLLOW_range_in_atom552); range21=range(label); state._fsp--; match(input,DOT,FOLLOW_DOT_in_atom567); match(input, Token.DOWN, null); match(input,ID,FOLLOW_ID_in_atom569); pushFollow(FOLLOW_terminal_in_atom571); terminal(label); state._fsp--; match(input, Token.UP, null); match(input,DOT,FOLLOW_DOT_in_atom579); match(input, Token.DOWN, null); match(input,ID,FOLLOW_ID_in_atom581); pushFollow(FOLLOW_ruleref_in_atom583); ruleref(label); state._fsp--; match(input, Token.UP, null);
RULE_REF27=(GrammarAST)match(input,RULE_REF,FOLLOW_RULE_REF_in_ruleref685); if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); ARG_ACTION28=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_ruleref687); pushFollow(FOLLOW_elementOptions_in_ruleref690); elementOptions(); state._fsp--; match(input, Token.UP, null); reportError(re); recover(input,re);
pushFollow(FOLLOW_labeledElement_in_element246); labeledElement3=labeledElement(); state._fsp--; pushFollow(FOLLOW_atom_in_element257); atom4=atom(null, false); state._fsp--; pushFollow(FOLLOW_subrule_in_element267); subrule5=subrule(); state._fsp--; ACTION6=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_element282); omos = controller.action((ActionAST)ACTION6); SEMPRED7=(GrammarAST)match(input,SEMPRED,FOLLOW_SEMPRED_in_element297); omos = controller.sempred((ActionAST)SEMPRED7); ACTION8=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_element311); match(input, Token.DOWN, null); pushFollow(FOLLOW_elementOptions_in_element313); elementOptions(); state._fsp--; match(input, Token.UP, null); SEMPRED9=(GrammarAST)match(input,SEMPRED,FOLLOW_SEMPRED_in_element325); match(input, Token.DOWN, null); pushFollow(FOLLOW_elementOptions_in_element327);
blk=(GrammarAST)match(input,BLOCK,FOLLOW_BLOCK_in_block84); match(input, Token.DOWN, null); match(input,OPTIONS,FOLLOW_OPTIONS_in_block88); match(input, Token.DOWN, null); matchAny(input); match(input, Token.UP, null); pushFollow(FOLLOW_alternative_in_block109); alternative1=alternative(); state._fsp--; match(input, Token.UP, null); reportError(re); recover(input,re);
public void buildNormalRuleFunction(Rule r, RuleFunction function) { CodeGenerator gen = delegate.getGenerator(); // TRIGGER factory functions for rule alts, elements GrammarASTAdaptor adaptor = new GrammarASTAdaptor(r.ast.token.getInputStream()); GrammarAST blk = (GrammarAST)r.ast.getFirstChildWithType(ANTLRParser.BLOCK); CommonTreeNodeStream nodes = new CommonTreeNodeStream(adaptor,blk); walker = new SourceGenTriggers(nodes, this); try { // walk AST of rule alts/elements function.code = DefaultOutputModelFactory.list(walker.block(null, null)); function.hasLookaheadBlock = walker.hasLookaheadBlock; } catch (org.antlr.runtime.RecognitionException e){ e.printStackTrace(System.err); } function.ctxType = gen.getTarget().getRuleFunctionContextStructName(function); function.postamble = rulePostamble(function, r); }
public final void dummy() throws RecognitionException { try { // org/antlr/v4/codegen/SourceGenTriggers.g:59:7: ( block[null, null] ) // org/antlr/v4/codegen/SourceGenTriggers.g:59:9: block[null, null] { pushFollow(FOLLOW_block_in_dummy61); block(null, null); state._fsp--; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } } // $ANTLR end "dummy"
match(input,NOT,FOLLOW_NOT_in_atom538); match(input, Token.DOWN, null); pushFollow(FOLLOW_atom_in_atom542); a=atom(label, true); state._fsp--; match(input, Token.UP, null); pushFollow(FOLLOW_range_in_atom552); range21=range(label); state._fsp--; match(input,DOT,FOLLOW_DOT_in_atom567); match(input, Token.DOWN, null); match(input,ID,FOLLOW_ID_in_atom569); pushFollow(FOLLOW_terminal_in_atom571); terminal(label); state._fsp--; match(input, Token.UP, null); match(input,DOT,FOLLOW_DOT_in_atom579); match(input, Token.DOWN, null); match(input,ID,FOLLOW_ID_in_atom581); pushFollow(FOLLOW_ruleref_in_atom583); ruleref(label); state._fsp--; match(input, Token.UP, null);
RULE_REF27=(GrammarAST)match(input,RULE_REF,FOLLOW_RULE_REF_in_ruleref685); if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); ARG_ACTION28=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_ruleref687); pushFollow(FOLLOW_elementOptions_in_ruleref690); elementOptions(); state._fsp--; match(input, Token.UP, null); reportError(re); recover(input,re);
pushFollow(FOLLOW_labeledElement_in_element246); labeledElement3=labeledElement(); state._fsp--; pushFollow(FOLLOW_atom_in_element257); atom4=atom(null, false); state._fsp--; pushFollow(FOLLOW_subrule_in_element267); subrule5=subrule(); state._fsp--; ACTION6=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_element282); omos = controller.action((ActionAST)ACTION6); SEMPRED7=(GrammarAST)match(input,SEMPRED,FOLLOW_SEMPRED_in_element297); omos = controller.sempred((ActionAST)SEMPRED7); ACTION8=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_element311); match(input, Token.DOWN, null); pushFollow(FOLLOW_elementOptions_in_element313); elementOptions(); state._fsp--; match(input, Token.UP, null); SEMPRED9=(GrammarAST)match(input,SEMPRED,FOLLOW_SEMPRED_in_element325); match(input, Token.DOWN, null); pushFollow(FOLLOW_elementOptions_in_element327);
blk=(GrammarAST)match(input,BLOCK,FOLLOW_BLOCK_in_block84); match(input, Token.DOWN, null); match(input,OPTIONS,FOLLOW_OPTIONS_in_block88); match(input, Token.DOWN, null); matchAny(input); match(input, Token.UP, null); pushFollow(FOLLOW_alternative_in_block109); alternative1=alternative(); state._fsp--; match(input, Token.UP, null); reportError(re); recover(input,re);
public final SourceGenTriggers.alternative_return alternative() throws RecognitionException { SourceGenTriggers.alternative_return retval = new SourceGenTriggers.alternative_return(); retval.start = input.LT(1); TreeRuleReturnScope a =null; boolean outerMost = inContext("RULE BLOCK"); try { // org\\antlr\\v4\\codegen\\SourceGenTriggers.g:62:5: (a= alt[outerMost] ) // org\\antlr\\v4\\codegen\\SourceGenTriggers.g:62:7: a= alt[outerMost] { pushFollow(FOLLOW_alt_in_alternative161); a=alt(outerMost); state._fsp--; retval.altCodeBlock =(a!=null?((SourceGenTriggers.alt_return)a).altCodeBlock:null); retval.ops =(a!=null?((SourceGenTriggers.alt_return)a).ops:null); } controller.finishAlternative(retval.altCodeBlock, retval.ops, outerMost); } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } return retval; } // $ANTLR end "alternative"