Refine search
public final ANTLRTreePrinter.modifier_return modifier() throws RecognitionException { ANTLRTreePrinter.modifier_return retval = new ANTLRTreePrinter.modifier_return(); retval.start = input.LT(1); out(((GrammarAST)retval.start).getText()); out(" "); try { // org/antlr/grammar/v3/ANTLRTreePrinter.g:282:2: ( 'protected' | 'public' | 'private' | 'fragment' ) // org/antlr/grammar/v3/ANTLRTreePrinter.g: { if ( input.LA(1)==FRAGMENT||(input.LA(1) >= PRIVATE && input.LA(1) <= PUBLIC) ) { input.consume(); state.errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); throw mse; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } return retval; } // $ANTLR end "modifier"
public final ANTLRTreePrinter.modifier_return modifier() throws RecognitionException { ANTLRTreePrinter.modifier_return retval = new ANTLRTreePrinter.modifier_return(); retval.start = input.LT(1); out(((GrammarAST)retval.start).getText()); out(" "); try { // org/antlr/grammar/v3/ANTLRTreePrinter.g:282:2: ( 'protected' | 'public' | 'private' | 'fragment' ) // org/antlr/grammar/v3/ANTLRTreePrinter.g: { if ( input.LA(1)==FRAGMENT||(input.LA(1) >= PRIVATE && input.LA(1) <= PUBLIC) ) { input.consume(); state.errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); throw mse; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } return retval; } // $ANTLR end "modifier"
if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); if (state.failed) return; int LA27_0 = input.LA(1); if ( (LA27_0==ACTION||LA27_0==AMPERSAND) ) { alt27=1; while (true) { int alt26=2; int LA26_0 = input.LA(1); if ( (LA26_0==AMPERSAND) ) { alt26=1; r.ruleScope = grammar.createRuleScope(r.name,attrs.getToken()); r.ruleScope.isDynamicRuleScope = true; r.ruleScope.addAttributes((attrs!=null?attrs.getText():null), ';'); for (GrammarAST action : AttributeScopeActions_stack.peek().actions.keySet()) r.ruleScope.defineNamedAction(action, AttributeScopeActions_stack.peek().actions.get(action)); if ( grammar.getGlobalScope((uses!=null?uses.getText():null))==null ) { ErrorManager.grammarError(ErrorManager.MSG_UNKNOWN_DYNAMIC_SCOPE, grammar, uses.getToken(), (uses!=null?uses.getText():null)); r.useScopes.add((uses!=null?uses.getText():null));
if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); if (state.failed) return; int LA27_0 = input.LA(1); if ( (LA27_0==ACTION||LA27_0==AMPERSAND) ) { alt27=1; while (true) { int alt26=2; int LA26_0 = input.LA(1); if ( (LA26_0==AMPERSAND) ) { alt26=1; r.ruleScope = grammar.createRuleScope(r.name,attrs.getToken()); r.ruleScope.isDynamicRuleScope = true; r.ruleScope.addAttributes((attrs!=null?attrs.getText():null), ';'); for (GrammarAST action : AttributeScopeActions_stack.peek().actions.keySet()) r.ruleScope.defineNamedAction(action, AttributeScopeActions_stack.peek().actions.get(action)); if ( grammar.getGlobalScope((uses!=null?uses.getText():null))==null ) { ErrorManager.grammarError(ErrorManager.MSG_UNKNOWN_DYNAMIC_SCOPE, grammar, uses.getToken(), (uses!=null?uses.getText():null)); r.useScopes.add((uses!=null?uses.getText():null));
while (true) { int alt2=2; int LA2_0 = input.LA(1); if ( (LA2_0==AMPERSAND) ) { alt2=1; AttributeScope scope = grammar.defineGlobalScope((name!=null?name.getText():null),attrs.getToken()); scope.isDynamicGlobalScope = true; scope.addAttributes((attrs!=null?attrs.getText():null), ';'); for (GrammarAST action : AttributeScopeActions_stack.peek().actions.keySet()) scope.defineNamedAction(action, AttributeScopeActions_stack.peek().actions.get(action));
while (true) { int alt2=2; int LA2_0 = input.LA(1); if ( (LA2_0==AMPERSAND) ) { alt2=1; AttributeScope scope = grammar.defineGlobalScope((name!=null?name.getText():null),attrs.getToken()); scope.isDynamicGlobalScope = true; scope.addAttributes((attrs!=null?attrs.getText():null), ';'); for (GrammarAST action : AttributeScopeActions_stack.peek().actions.keySet()) scope.defineNamedAction(action, AttributeScopeActions_stack.peek().actions.get(action));
int LA48_0 = input.LA(1); if ( (LA48_0==ID) ) { alt48=1; out(" "+(id!=null?id.getText():null)); out(" ({"+(ind!=null?ind.getText():null)+"})"); if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); while (true) { int alt49=2; int LA49_0 = input.LA(1); if ( (LA49_0==ARG) ) { alt49=1; match(input, Token.DOWN, null); arg=(GrammarAST)match(input,ID,FOLLOW_ID_in_rewrite_template1253); out((arg!=null?arg.getText():null)+"="); a=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_rewrite_template1265); out((a!=null?a.getText():null)); match(input, Token.UP, null); out(" "+(DOUBLE_QUOTE_STRING_LITERAL3!=null?DOUBLE_QUOTE_STRING_LITERAL3.getText():null)); out(" "+(DOUBLE_ANGLE_STRING_LITERAL4!=null?DOUBLE_ANGLE_STRING_LITERAL4.getText():null));
int LA48_0 = input.LA(1); if ( (LA48_0==ID) ) { alt48=1; out(" "+(id!=null?id.getText():null)); out(" ({"+(ind!=null?ind.getText():null)+"})"); if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); while (true) { int alt49=2; int LA49_0 = input.LA(1); if ( (LA49_0==ARG) ) { alt49=1; match(input, Token.DOWN, null); arg=(GrammarAST)match(input,ID,FOLLOW_ID_in_rewrite_template1253); out((arg!=null?arg.getText():null)+"="); a=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_rewrite_template1265); out((a!=null?a.getText():null)); match(input, Token.UP, null); out(" "+(DOUBLE_QUOTE_STRING_LITERAL3!=null?DOUBLE_QUOTE_STRING_LITERAL3.getText():null)); out(" "+(DOUBLE_ANGLE_STRING_LITERAL4!=null?DOUBLE_ANGLE_STRING_LITERAL4.getText():null));
if ( label!=null ) labelText = label.getText(); switch ( input.LA(1) ) { case CHAR_LITERAL: if ( grammar.type==Grammar.LEXER ) ttype = Grammar.getCharValueFromGrammarCharLiteral((assign_c!=null?assign_c.getText():null)); ttype = grammar.getTokenType((assign_c!=null?assign_c.getText():null)); ttype = grammar.getTokenType((assign_s!=null?assign_s.getText():null)); int ttype = grammar.getTokenType((assign_t!=null?assign_t.getText():null)); elements = grammar.complement(ttype); if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); if (state.failed) return code; while (true) { int alt48=2; int LA48_0 = input.LA(1); if ( ((LA48_0 >= ACTION && LA48_0 <= XDIGIT)) ) { alt48=1;
if ( label!=null ) labelText = label.getText(); switch ( input.LA(1) ) { case CHAR_LITERAL: if ( grammar.type==Grammar.LEXER ) ttype = Grammar.getCharValueFromGrammarCharLiteral((assign_c!=null?assign_c.getText():null)); ttype = grammar.getTokenType((assign_c!=null?assign_c.getText():null)); ttype = grammar.getTokenType((assign_s!=null?assign_s.getText():null)); int ttype = grammar.getTokenType((assign_t!=null?assign_t.getText():null)); elements = grammar.complement(ttype); if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); if (state.failed) return code; while (true) { int alt48=2; int LA48_0 = input.LA(1); if ( ((LA48_0 >= ACTION && LA48_0 <= XDIGIT)) ) { alt48=1;
ttype = Grammar.getCharValueFromGrammarCharLiteral((c!=null?c.getText():null)); ttype = grammar.getTokenType((c!=null?c.getText():null)); grammar, c.getToken(), (c!=null?c.getText():null)); IntSet ruleSet = grammar.getSetFromRule(this,(t!=null?t.getText():null)); if ( ruleSet==null ) grammar, t.getToken(), (t!=null?t.getText():null)); ttype = grammar.getTokenType((t!=null?t.getText():null)); if ( elements.member(ttype) ) grammar, t.getToken(), (t!=null?t.getText():null)); ttype = grammar.getTokenType((s!=null?s.getText():null)); if ( elements.member(ttype) ) grammar, s.getToken(), (s!=null?s.getText():null));