java.lang.Object | +--antlr.CharScanner | +--antlr.actions.cpp.ActionLexer
Untamed: Perform the following translations: AST related translations ## -> currentRule_AST #(x,y,z) -> codeGenerator.getASTCreateString(vector-of(x,y,z)) #[x] -> codeGenerator.getASTCreateString(x) #x -> codeGenerator.mapTreeId(x) Inside context of #(...), you can ref (x,y,z), [x], and x as shortcuts. Text related translations $append(x) -> text.append(x) $setText(x) -> text.setLength(_begin); text.append(x) $getText -> new String(text.getBuffer(),_begin,text.length()-_begin) $setToken(x) -> _token = x $setType(x) -> _ttype = x
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, text, tokenObjectClass, traceDepth
ACTION, ARG, AST_CONSTRUCTOR, AST_CTOR_ELEMENT, AST_ITEM, CHAR, COMMENT, DIGIT, EOF, ESC, ID, ID_ELEMENT, INT, INT_OR_FLOAT, ML_COMMENT, NULL_TREE_LOOKAHEAD, SL_COMMENT, STRING, STUFF, TEXT_ARG, TEXT_ARG_ELEMENT, TEXT_ARG_ID_ELEMENT, TEXT_ITEM, TREE, TREE_ELEMENT, VAR_ASSIGN, WS
ActionLexer(InputBuffer ib)
ActionLexer(InputStream in)
ActionLexer(LexerSharedInputState state)
ActionLexer(Reader in)
ActionLexer(String s,
RuleBlock currentRule,
CodeGenerator generator,
ActionTransInfo transInfo)
protected void
mAST_CTOR_ELEMENT(boolean _createToken)
protected boolean
mID_ELEMENT(boolean _createToken)
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
protected RuleBlock currentRule
protected CodeGenerator generator
protected int lineOffset
private Tool tool
ActionTransInfo transInfo
private static final long[] _tokenSet_0_data_
public static final BitSet _tokenSet_0
private static final long[] _tokenSet_1_data_
public static final BitSet _tokenSet_1
private static final long[] _tokenSet_2_data_
public static final BitSet _tokenSet_2
private static final long[] _tokenSet_3_data_
public static final BitSet _tokenSet_3
private static final long[] _tokenSet_4_data_
public static final BitSet _tokenSet_4
private static final long[] _tokenSet_5_data_
public static final BitSet _tokenSet_5
private static final long[] _tokenSet_6_data_
public static final BitSet _tokenSet_6
private static final long[] _tokenSet_7_data_
public static final BitSet _tokenSet_7
private static final long[] _tokenSet_8_data_
public static final BitSet _tokenSet_8
private static final long[] _tokenSet_9_data_
public static final BitSet _tokenSet_9
private static final long[] _tokenSet_10_data_
public static final BitSet _tokenSet_10
private static final long[] _tokenSet_11_data_
public static final BitSet _tokenSet_11
private static final long[] _tokenSet_12_data_
public static final BitSet _tokenSet_12
private static final long[] _tokenSet_13_data_
public static final BitSet _tokenSet_13
private static final long[] _tokenSet_14_data_
public static final BitSet _tokenSet_14
private static final long[] _tokenSet_15_data_
public static final BitSet _tokenSet_15
private static final long[] _tokenSet_16_data_
public static final BitSet _tokenSet_16
private static final long[] _tokenSet_17_data_
public static final BitSet _tokenSet_17
private static final long[] _tokenSet_18_data_
public static final BitSet _tokenSet_18
private static final long[] _tokenSet_19_data_
public static final BitSet _tokenSet_19
private static final long[] _tokenSet_20_data_
public static final BitSet _tokenSet_20
public ActionLexer(String s, RuleBlock currentRule, CodeGenerator generator, ActionTransInfo transInfo)
public ActionLexer(InputStream in)
public ActionLexer(Reader in)
public ActionLexer(InputBuffer ib)
public ActionLexer(LexerSharedInputState state)
public void setLineOffset(int lineOffset)
public void setTool(Tool tool)
public void reportError(RecognitionException e)
reportError
in class CharScanner
public Token nextToken() throws TokenStreamException
nextToken
in interface TokenStream
public final void mACTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mSTUFF(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mAST_ITEM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mTEXT_ITEM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mCOMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mSTRING(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mCHAR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mTREE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mID(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mVAR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mAST_CONSTRUCTOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mTEXT_ARG(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mTREE_ELEMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final boolean mID_ELEMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mAST_CTOR_ELEMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mINT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mARG(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mTEXT_ARG_ELEMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mTEXT_ARG_ID_ELEMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mINT_OR_FLOAT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mSL_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mML_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mESC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
protected final void mDIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException