public class ActionLexer extends CharScanner implements ActionLexerTokenTypes, TokenStream
Modifier and Type | Field and Description |
---|---|
static BitSet |
_tokenSet_0 |
static BitSet |
_tokenSet_1 |
static BitSet |
_tokenSet_10 |
static BitSet |
_tokenSet_11 |
static BitSet |
_tokenSet_12 |
static BitSet |
_tokenSet_13 |
static BitSet |
_tokenSet_14 |
static BitSet |
_tokenSet_15 |
static BitSet |
_tokenSet_16 |
static BitSet |
_tokenSet_17 |
static BitSet |
_tokenSet_18 |
static BitSet |
_tokenSet_19 |
static BitSet |
_tokenSet_2 |
static BitSet |
_tokenSet_20 |
static BitSet |
_tokenSet_21 |
static BitSet |
_tokenSet_22 |
static BitSet |
_tokenSet_23 |
static BitSet |
_tokenSet_24 |
static BitSet |
_tokenSet_25 |
static BitSet |
_tokenSet_3 |
static BitSet |
_tokenSet_4 |
static BitSet |
_tokenSet_5 |
static BitSet |
_tokenSet_6 |
static BitSet |
_tokenSet_7 |
static BitSet |
_tokenSet_8 |
static BitSet |
_tokenSet_9 |
protected RuleBlock |
currentRule |
protected CodeGenerator |
generator |
protected int |
lineOffset |
(package private) ActionTransInfo |
transInfo |
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth
ACTION, ARG, AST_CONSTRUCTOR, AST_CTOR_ELEMENT, AST_ITEM, CHAR, COMMENT, DIGIT, EOF, ESC, ID, ID_ELEMENT, IGNWS, 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
Constructor and Description |
---|
ActionLexer(InputBuffer ib) |
ActionLexer(InputStream in) |
ActionLexer(LexerSharedInputState state) |
ActionLexer(Reader in) |
ActionLexer(String s,
RuleBlock currentRule,
CodeGenerator generator,
ActionTransInfo transInfo) |
Modifier and Type | Method and Description |
---|---|
void |
mACTION(boolean _createToken) |
protected void |
mARG(boolean _createToken) |
protected void |
mAST_CONSTRUCTOR(boolean _createToken) |
protected void |
mAST_CTOR_ELEMENT(boolean _createToken)
The arguments of a #[...] constructor are text, token type,
or a tree.
|
protected void |
mAST_ITEM(boolean _createToken) |
protected void |
mCHAR(boolean _createToken) |
protected void |
mCOMMENT(boolean _createToken) |
protected void |
mDIGIT(boolean _createToken) |
protected void |
mESC(boolean _createToken) |
protected boolean |
mID_ELEMENT(boolean _createToken)
An ID_ELEMENT can be a func call, array ref, simple var,
or AST label ref.
|
protected void |
mID(boolean _createToken) |
protected void |
mIGNWS(boolean _createToken) |
protected void |
mINT_OR_FLOAT(boolean _createToken) |
protected void |
mINT(boolean _createToken) |
protected void |
mML_COMMENT(boolean _createToken) |
protected void |
mSL_COMMENT(boolean _createToken) |
protected void |
mSTRING(boolean _createToken) |
protected void |
mSTUFF(boolean _createToken) |
protected void |
mTEXT_ARG_ELEMENT(boolean _createToken) |
protected void |
mTEXT_ARG_ID_ELEMENT(boolean _createToken) |
protected void |
mTEXT_ARG(boolean _createToken) |
protected void |
mTEXT_ITEM(boolean _createToken) |
protected void |
mTREE_ELEMENT(boolean _createToken) |
protected void |
mTREE(boolean _createToken) |
protected void |
mVAR_ASSIGN(boolean _createToken) |
protected void |
mWS(boolean _createToken) |
Token |
nextToken() |
void |
reportError(RecognitionException e)
Parser error-reporting function can be overridden in subclass
|
void |
reportError(String s)
Parser error-reporting function can be overridden in subclass
|
void |
reportWarning(String s)
Parser warning-reporting function can be overridden in subclass
|
void |
setLineOffset(int lineOffset) |
void |
setTool(Tool tool) |
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
protected RuleBlock currentRule
protected CodeGenerator generator
protected int lineOffset
ActionTransInfo transInfo
public static final BitSet _tokenSet_0
public static final BitSet _tokenSet_1
public static final BitSet _tokenSet_2
public static final BitSet _tokenSet_3
public static final BitSet _tokenSet_4
public static final BitSet _tokenSet_5
public static final BitSet _tokenSet_6
public static final BitSet _tokenSet_7
public static final BitSet _tokenSet_8
public static final BitSet _tokenSet_9
public static final BitSet _tokenSet_10
public static final BitSet _tokenSet_11
public static final BitSet _tokenSet_12
public static final BitSet _tokenSet_13
public static final BitSet _tokenSet_14
public static final BitSet _tokenSet_15
public static final BitSet _tokenSet_16
public static final BitSet _tokenSet_17
public static final BitSet _tokenSet_18
public static final BitSet _tokenSet_19
public static final BitSet _tokenSet_20
public static final BitSet _tokenSet_21
public static final BitSet _tokenSet_22
public static final BitSet _tokenSet_23
public static final BitSet _tokenSet_24
public static final BitSet _tokenSet_25
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)
CharScanner
reportError
in class CharScanner
public void reportError(String s)
CharScanner
reportError
in class CharScanner
public void reportWarning(String s)
CharScanner
reportWarning
in class CharScanner
public Token nextToken() throws TokenStreamException
nextToken
in interface TokenStream
TokenStreamException
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 mIGNWS(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