match("src"); match(' '); int fileStart966 = getCharIndex(); int fileStartLine966 = getLine(); int fileStartCharPos966 = getCharPositionInLine(); mACTION_STRING_LITERAL(); file = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, fileStart966, getCharIndex()-1); file.setLine(fileStartLine966); file.setCharPositionInLine(fileStartCharPos966); match(' '); int lineStart972 = getCharIndex(); int lineStartLine972 = getLine(); int lineStartCharPos972 = getCharPositionInLine(); mINT(); line = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, lineStart972, getCharIndex()-1); line.setLine(lineStartLine972); line.setCharPositionInLine(lineStartCharPos972);
mRET(); mSCOPE(); mFRAGMENT(); mTREE_BEGIN(); mROOT(); mBANG(); mRANGE(); mREWRITE(); mAT(); mLABEL_ASSIGN(); mLIST_LABEL_ASSIGN(); mT__67(); mT__68(); mT__69(); mT__70();
match('{'); mNESTED_ACTION(); mSL_COMMENT(); mML_COMMENT(); mACTION_STRING_LITERAL(); mACTION_CHAR_LITERAL(); matchAny(); match('}');
public final void mSRC() throws RecognitionException { try { CommonToken file=null; CommonToken line=null; // org/antlr/grammar/v3/ANTLRv3.g:607:5: ( 'src' ' ' file= ACTION_STRING_LITERAL ' ' line= INT ) // org/antlr/grammar/v3/ANTLRv3.g:607:7: 'src' ' ' file= ACTION_STRING_LITERAL ' ' line= INT { match("src"); match(' '); int fileStart997 = getCharIndex(); mACTION_STRING_LITERAL(); file = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, fileStart997, getCharIndex()-1); match(' '); int lineStart1003 = getCharIndex(); mINT(); line = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, lineStart1003, getCharIndex()-1); } } finally { } } // $ANTLR end "SRC"
match('['); mNESTED_ARG_ACTION(); mACTION_STRING_LITERAL(); mACTION_CHAR_LITERAL(); matchAny(); match(']');
match('\"'); mACTION_ESC(); recover(mse); throw mse; match('\"');
public void parseAndRewrite() throws Exception { processArgs(args); CharStream input; if ( filename!=null ) input = new ANTLRFileStream(filename); else input = new ANTLRInputStream(System.in); // BUILD AST ANTLRv3Lexer lex = new ANTLRv3Lexer(input); tokens = new TokenRewriteStream(lex); ANTLRv3Parser g = new ANTLRv3Parser(tokens); ANTLRv3Parser.grammarDef_return r = g.grammarDef(); CommonTree t = r.getTree(); if (tree_option) System.out.println(t.toStringTree()); rewrite(g.getTreeAdaptor(),t,g.getTokenNames()); }
match('['); mNESTED_ARG_ACTION(); mACTION_STRING_LITERAL(); mACTION_CHAR_LITERAL(); matchAny(); match(']');
match('\"'); mACTION_ESC(); recover(mse); throw mse;} match('\"');
public void parseAndRewrite() throws Exception { processArgs(args); CharStream input = null; if ( filename!=null ) input = new ANTLRFileStream(filename); else input = new ANTLRInputStream(System.in); // BUILD AST ANTLRv3Lexer lex = new ANTLRv3Lexer(input); tokens = new TokenRewriteStream(lex); ANTLRv3Parser g = new ANTLRv3Parser(tokens); ANTLRv3Parser.grammarDef_return r = g.grammarDef(); CommonTree t = (CommonTree)r.getTree(); if (tree_option) System.out.println(t.toStringTree()); rewrite(g.getTreeAdaptor(),t,g.getTokenNames()); }
mAT(); mBANG(); mFRAGMENT(); mLABEL_ASSIGN(); mLIST_LABEL_ASSIGN(); mRANGE(); mRET(); mREWRITE(); mROOT(); mSCOPE(); mTREE_BEGIN(); mT__67(); mT__68(); mT__69(); mT__70();
match('{'); mNESTED_ACTION(); mSL_COMMENT(); mML_COMMENT(); mACTION_STRING_LITERAL(); mACTION_CHAR_LITERAL(); matchAny(); match('}');
match('['); mNESTED_ARG_ACTION(); mACTION_STRING_LITERAL(); mACTION_CHAR_LITERAL(); matchAny(); match(']');
match("src"); match(' '); int fileStart966 = getCharIndex(); int fileStartLine966 = getLine(); int fileStartCharPos966 = getCharPositionInLine(); mACTION_STRING_LITERAL(); file = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, fileStart966, getCharIndex()-1); file.setLine(fileStartLine966); file.setCharPositionInLine(fileStartCharPos966); match(' '); int lineStart972 = getCharIndex(); int lineStartLine972 = getLine(); int lineStartCharPos972 = getCharPositionInLine(); mINT(); line = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, lineStart972, getCharIndex()-1); line.setLine(lineStartLine972); line.setCharPositionInLine(lineStartCharPos972);
match('\''); mACTION_ESC(); recover(mse); throw mse; match('\'');
public void parseAndRewrite() throws Exception { processArgs(args); CharStream input; if ( filename!=null ) input = new ANTLRFileStream(filename); else input = new ANTLRInputStream(System.in); // BUILD AST ANTLRv3Lexer lex = new ANTLRv3Lexer(input); tokens = new TokenRewriteStream(lex); ANTLRv3Parser g = new ANTLRv3Parser(tokens); ANTLRv3Parser.grammarDef_return r = g.grammarDef(); CommonTree t = r.getTree(); if (tree_option) System.out.println(t.toStringTree()); rewrite(g.getTreeAdaptor(),t,g.getTokenNames()); }
mAT(); mBANG(); mFRAGMENT(); mLABEL_ASSIGN(); mLIST_LABEL_ASSIGN(); mRANGE(); mRET(); mREWRITE(); mROOT(); mSCOPE(); mTREE_BEGIN(); mT__67(); mT__68(); mT__69(); mT__70();
match('{'); mNESTED_ACTION(); mSL_COMMENT(); mML_COMMENT(); mACTION_STRING_LITERAL(); mACTION_CHAR_LITERAL(); matchAny(); match('}');
match('\''); mACTION_ESC(); recover(mse); throw mse;} match('\'');
public void parseAndRewrite() throws Exception { processArgs(args); CharStream input = null; if ( filename!=null ) input = new ANTLRFileStream(filename); else input = new ANTLRInputStream(System.in); // BUILD AST ANTLRv3Lexer lex = new ANTLRv3Lexer(input); tokens = new TokenRewriteStream(lex); ANTLRv3Parser g = new ANTLRv3Parser(tokens); ANTLRv3Parser.grammarDef_return r = g.grammarDef(); CommonTree t = (CommonTree)r.getTree(); if (tree_option) System.out.println(t.toStringTree()); rewrite(g.getTreeAdaptor(),t,g.getTokenNames()); }