Public Member Functions | |
ActionLexer (String s, RuleBlock currentRule, CodeGenerator generator, ActionTransInfo transInfo) | |
void | setLineOffset (int lineOffset) |
void | setTool (Tool tool) |
void | reportError (RecognitionException e) |
void | reportError (String s) |
void | reportWarning (String s) |
ActionLexer (InputStream in) | |
ActionLexer (Reader in) | |
ActionLexer (InputBuffer ib) | |
ActionLexer (LexerSharedInputState state) | |
Token | nextToken () throws TokenStreamException |
final void | mACTION (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
Static Public Attributes | |
static final BitSet | _tokenSet_0 = new BitSet(mk_tokenSet_0()) |
static final BitSet | _tokenSet_1 = new BitSet(mk_tokenSet_1()) |
static final BitSet | _tokenSet_2 = new BitSet(mk_tokenSet_2()) |
static final BitSet | _tokenSet_3 = new BitSet(mk_tokenSet_3()) |
static final BitSet | _tokenSet_4 = new BitSet(mk_tokenSet_4()) |
static final BitSet | _tokenSet_5 = new BitSet(mk_tokenSet_5()) |
static final BitSet | _tokenSet_6 = new BitSet(mk_tokenSet_6()) |
static final BitSet | _tokenSet_7 = new BitSet(mk_tokenSet_7()) |
static final BitSet | _tokenSet_8 = new BitSet(mk_tokenSet_8()) |
static final BitSet | _tokenSet_9 = new BitSet(mk_tokenSet_9()) |
static final BitSet | _tokenSet_10 = new BitSet(mk_tokenSet_10()) |
static final BitSet | _tokenSet_11 = new BitSet(mk_tokenSet_11()) |
static final BitSet | _tokenSet_12 = new BitSet(mk_tokenSet_12()) |
static final BitSet | _tokenSet_13 = new BitSet(mk_tokenSet_13()) |
static final BitSet | _tokenSet_14 = new BitSet(mk_tokenSet_14()) |
static final BitSet | _tokenSet_15 = new BitSet(mk_tokenSet_15()) |
static final BitSet | _tokenSet_16 = new BitSet(mk_tokenSet_16()) |
static final BitSet | _tokenSet_17 = new BitSet(mk_tokenSet_17()) |
static final BitSet | _tokenSet_18 = new BitSet(mk_tokenSet_18()) |
static final BitSet | _tokenSet_19 = new BitSet(mk_tokenSet_19()) |
static final BitSet | _tokenSet_20 = new BitSet(mk_tokenSet_20()) |
static final BitSet | _tokenSet_21 = new BitSet(mk_tokenSet_21()) |
static final BitSet | _tokenSet_22 = new BitSet(mk_tokenSet_22()) |
static final BitSet | _tokenSet_23 = new BitSet(mk_tokenSet_23()) |
static final BitSet | _tokenSet_24 = new BitSet(mk_tokenSet_24()) |
static final BitSet | _tokenSet_25 = new BitSet(mk_tokenSet_25()) |
static final BitSet | _tokenSet_26 = new BitSet(mk_tokenSet_26()) |
Protected Member Functions | |
final void | mSTUFF (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mAST_ITEM (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mTEXT_ITEM (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mCOMMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mSTRING (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mCHAR (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mTREE (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mWS (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mID (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mVAR_ASSIGN (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mAST_CONSTRUCTOR (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mTEXT_ARG (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mTREE_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final boolean | mID_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mAST_CTOR_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mINT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mARG (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mTEXT_ARG_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mTEXT_ARG_ID_ELEMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mINT_OR_FLOAT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mSL_COMMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mML_COMMENT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mESC (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mDIGIT (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
Protected Attributes | |
RuleBlock | currentRule |
CodeGenerator | generator |
int | lineOffset = 0 |
Package Attributes | |
ActionTransInfo | transInfo |
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 $FOLLOW(r) -> FOLLOW set name for rule r (optional arg) $FIRST(r) -> FIRST set name for rule r (optional arg)
antlr.actions.csharp.ActionLexer.ActionLexer | ( | String | s, | |
RuleBlock | currentRule, | |||
CodeGenerator | generator, | |||
ActionTransInfo | transInfo | |||
) |
antlr.actions.csharp.ActionLexer.ActionLexer | ( | InputStream | in | ) |
antlr.actions.csharp.ActionLexer.ActionLexer | ( | Reader | in | ) |
antlr.actions.csharp.ActionLexer.ActionLexer | ( | InputBuffer | ib | ) |
antlr.actions.csharp.ActionLexer.ActionLexer | ( | LexerSharedInputState | state | ) |
final void antlr.actions.csharp.ActionLexer.mACTION | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_0, antlr.actions.csharp.ActionLexerTokenTypes.ACTION, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.actions.csharp.ActionLexer.mAST_ITEM(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mSTUFF(), antlr.actions.csharp.ActionLexer.mTEXT_ITEM(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.nextToken().
final void antlr.actions.csharp.ActionLexer.mARG | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_19, antlr.actions.csharp.ActionLexer._tokenSet_20, antlr.actions.csharp.ActionLexer._tokenSet_21, antlr.actions.csharp.ActionLexerTokenTypes.ARG, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.actions.csharp.ActionLexer.mCHAR(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mINT_OR_FLOAT(), antlr.actions.csharp.ActionLexer.mSTRING(), antlr.actions.csharp.ActionLexer.mTREE_ELEMENT(), antlr.actions.csharp.ActionLexer.mWS(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mID_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_10, antlr.ANTLRStringBuffer.append(), antlr.actions.csharp.ActionLexerTokenTypes.AST_CONSTRUCTOR, antlr.actions.csharp.ActionLexer.generator, antlr.CodeGenerator.getASTCreateString(), antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.Token.getText(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.actions.csharp.ActionLexer.mAST_CTOR_ELEMENT(), antlr.CharScanner.match(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mWS(), antlr.CodeGenerator.processStringForASTConstructor(), antlr.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mAST_ITEM(), and antlr.actions.csharp.ActionLexer.mTREE_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mAST_CTOR_ELEMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
The arguments of a #[...] constructor are text, token type, or a tree.
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_19, antlr.actions.csharp.ActionLexerTokenTypes.AST_CTOR_ELEMENT, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mINT(), antlr.actions.csharp.ActionLexer.mSTRING(), antlr.actions.csharp.ActionLexer.mTREE_ELEMENT(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR().
final void antlr.actions.csharp.ActionLexer.mAST_ITEM | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_3, antlr.actions.csharp.ActionLexer._tokenSet_4, antlr.ANTLRStringBuffer.append(), antlr.actions.csharp.ActionLexerTokenTypes.AST_ITEM, antlr.actions.csharp.ActionLexer.currentRule, antlr.actions.csharp.ActionLexer.generator, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.RuleBlock.getRuleName(), antlr.CharScanner.getText(), antlr.Token.getText(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CodeGenerator.mapTreeId(), antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR(), antlr.CharScanner.match(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mID(), antlr.actions.csharp.ActionLexer.mTREE(), antlr.actions.csharp.ActionLexer.mVAR_ASSIGN(), antlr.actions.csharp.ActionLexer.mWS(), antlr.ActionTransInfo.refRuleRoot, antlr.actions.csharp.ActionLexer.reportWarning(), antlr.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, and antlr.actions.csharp.ActionLexer.transInfo.
Referenced by antlr.actions.csharp.ActionLexer.mACTION().
final void antlr.actions.csharp.ActionLexer.mCHAR | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_8, antlr.actions.csharp.ActionLexerTokenTypes.CHAR, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.CharScanner.matchNot(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mESC(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mARG(), antlr.actions.csharp.ActionLexer.mSTUFF(), and antlr.actions.csharp.ActionLexer.mTEXT_ARG_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mCOMMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexerTokenTypes.COMMENT, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.actions.csharp.ActionLexer.mML_COMMENT(), antlr.actions.csharp.ActionLexer.mSL_COMMENT(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mSTUFF().
final void antlr.actions.csharp.ActionLexer.mDIGIT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexerTokenTypes.DIGIT, antlr.ANTLRStringBuffer.getBuffer(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.matchRange(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mESC(), antlr.actions.csharp.ActionLexer.mINT(), and antlr.actions.csharp.ActionLexer.mINT_OR_FLOAT().
final void antlr.actions.csharp.ActionLexer.mESC | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexerTokenTypes.ESC, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.CharScanner.matchRange(), antlr.actions.csharp.ActionLexer.mDIGIT(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mCHAR(), and antlr.actions.csharp.ActionLexer.mSTRING().
final void antlr.actions.csharp.ActionLexer.mID | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_9, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.actions.csharp.ActionLexerTokenTypes.ID, antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.CharScanner.matchRange(), antlr.collections.impl.BitSet.member(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mAST_ITEM(), antlr.actions.csharp.ActionLexer.mID_ELEMENT(), and antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT().
final boolean antlr.actions.csharp.ActionLexer.mID_ELEMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
An ID_ELEMENT can be a func call, array ref, simple var, or AST label ref.
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_13, antlr.actions.csharp.ActionLexer._tokenSet_14, antlr.actions.csharp.ActionLexer._tokenSet_15, antlr.actions.csharp.ActionLexer._tokenSet_16, antlr.actions.csharp.ActionLexer._tokenSet_17, antlr.actions.csharp.ActionLexer._tokenSet_18, antlr.actions.csharp.ActionLexer._tokenSet_4, antlr.ANTLRStringBuffer.append(), antlr.actions.csharp.ActionLexer.generator, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.getText(), antlr.actions.csharp.ActionLexerTokenTypes.ID_ELEMENT, antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CodeGenerator.mapTreeId(), antlr.actions.csharp.ActionLexer.mARG(), antlr.CharScanner.match(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mID(), antlr.actions.csharp.ActionLexer.mVAR_ASSIGN(), antlr.actions.csharp.ActionLexer.mWS(), antlr.ActionTransInfo.refRuleRoot, antlr.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, and antlr.actions.csharp.ActionLexer.transInfo.
Referenced by antlr.actions.csharp.ActionLexer.mTREE_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mINT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.actions.csharp.ActionLexerTokenTypes.INT, antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.actions.csharp.ActionLexer.mDIGIT(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mAST_CTOR_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mINT_OR_FLOAT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_25, antlr.actions.csharp.ActionLexer._tokenSet_26, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.actions.csharp.ActionLexerTokenTypes.INT_OR_FLOAT, antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.actions.csharp.ActionLexer.mDIGIT(), antlr.collections.impl.BitSet.member(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mARG(), and antlr.actions.csharp.ActionLexer.mTEXT_ARG_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mML_COMMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.CharScanner.EOF_CHAR, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.CharScanner.matchNot(), antlr.actions.csharp.ActionLexerTokenTypes.ML_COMMENT, antlr.CharScanner.newline(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mCOMMENT().
final void antlr.actions.csharp.ActionLexer.mSL_COMMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.CharScanner.EOF_CHAR, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.CharScanner.matchNot(), antlr.CharScanner.newline(), antlr.Token.setText(), antlr.Token.SKIP, antlr.actions.csharp.ActionLexerTokenTypes.SL_COMMENT, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mCOMMENT().
final void antlr.actions.csharp.ActionLexer.mSTRING | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_7, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.CharScanner.matchNot(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mESC(), antlr.Token.setText(), antlr.Token.SKIP, antlr.actions.csharp.ActionLexerTokenTypes.STRING, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mARG(), antlr.actions.csharp.ActionLexer.mAST_CTOR_ELEMENT(), antlr.actions.csharp.ActionLexer.mSTUFF(), antlr.actions.csharp.ActionLexer.mTEXT_ARG_ELEMENT(), and antlr.actions.csharp.ActionLexer.mTREE_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mSTUFF | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
stuff in between #(...) and id items Allow the escaping of the # for C# preprocessor stuff.
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_1, antlr.actions.csharp.ActionLexer._tokenSet_2, antlr.ANTLRStringBuffer.append(), antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.actions.csharp.ActionLexer.mCHAR(), antlr.actions.csharp.ActionLexer.mCOMMENT(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mSTRING(), antlr.CharScanner.newline(), antlr.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, antlr.actions.csharp.ActionLexerTokenTypes.STUFF, and antlr.CharScanner.text.
Referenced by antlr.actions.csharp.ActionLexer.mACTION().
final void antlr.actions.csharp.ActionLexer.mTEXT_ARG | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_11, antlr.actions.csharp.ActionLexer._tokenSet_12, antlr.actions.csharp.ActionLexer._tokenSet_4, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mTEXT_ARG_ELEMENT(), antlr.actions.csharp.ActionLexer.mWS(), antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, and antlr.actions.csharp.ActionLexerTokenTypes.TEXT_ARG.
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT(), and antlr.actions.csharp.ActionLexer.mTEXT_ITEM().
final void antlr.actions.csharp.ActionLexer.mTEXT_ARG_ELEMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.actions.csharp.ActionLexer.mCHAR(), antlr.actions.csharp.ActionLexer.mINT_OR_FLOAT(), antlr.actions.csharp.ActionLexer.mSTRING(), antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.csharp.ActionLexer.mTEXT_ITEM(), antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, and antlr.actions.csharp.ActionLexerTokenTypes.TEXT_ARG_ELEMENT.
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ARG().
final void antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_22, antlr.actions.csharp.ActionLexer._tokenSet_23, antlr.actions.csharp.ActionLexer._tokenSet_24, antlr.actions.csharp.ActionLexer._tokenSet_4, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mID(), antlr.actions.csharp.ActionLexer.mTEXT_ARG(), antlr.actions.csharp.ActionLexer.mWS(), antlr.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, and antlr.actions.csharp.ActionLexerTokenTypes.TEXT_ARG_ID_ELEMENT.
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ARG_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mTEXT_ITEM | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_5, antlr.actions.csharp.ActionLexer._tokenSet_6, antlr.ANTLRStringBuffer.append(), antlr.actions.csharp.ActionLexer.currentRule, antlr.actions.csharp.ActionLexer.generator, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CodeGenerator.getFIRSTBitSet(), antlr.CodeGenerator.getFOLLOWBitSet(), antlr.CharScanner.getLine(), antlr.RuleBlock.getRuleName(), antlr.Token.getText(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mTEXT_ARG(), antlr.actions.csharp.ActionLexer.mWS(), antlr.actions.csharp.ActionLexer.reportError(), antlr.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, and antlr.actions.csharp.ActionLexerTokenTypes.TEXT_ITEM.
Referenced by antlr.actions.csharp.ActionLexer.mACTION(), and antlr.actions.csharp.ActionLexer.mTEXT_ARG_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mTREE | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.ANTLRStringBuffer.append(), antlr.collections.impl.Vector.appendElement(), antlr.actions.csharp.ActionLexer.generator, antlr.CodeGenerator.getASTCreateString(), antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.Token.getText(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.actions.csharp.ActionLexer.mTREE_ELEMENT(), antlr.actions.csharp.ActionLexer.mWS(), antlr.CodeGenerator.processStringForASTConstructor(), antlr.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, and antlr.actions.csharp.ActionLexerTokenTypes.TREE.
Referenced by antlr.actions.csharp.ActionLexer.mAST_ITEM(), and antlr.actions.csharp.ActionLexer.mTREE_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mTREE_ELEMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.csharp.ActionLexer._tokenSet_13, antlr.ANTLRStringBuffer.append(), antlr.actions.csharp.ActionLexer.currentRule, antlr.actions.csharp.ActionLexer.generator, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.RuleBlock.getRuleName(), antlr.CharScanner.getText(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CodeGenerator.mapTreeId(), antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR(), antlr.CharScanner.match(), antlr.collections.impl.BitSet.member(), antlr.actions.csharp.ActionLexer.mID_ELEMENT(), antlr.actions.csharp.ActionLexer.mSTRING(), antlr.actions.csharp.ActionLexer.mTREE(), antlr.actions.csharp.ActionLexer.reportError(), antlr.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, and antlr.actions.csharp.ActionLexerTokenTypes.TREE_ELEMENT.
Referenced by antlr.actions.csharp.ActionLexer.mARG(), antlr.actions.csharp.ActionLexer.mAST_CTOR_ELEMENT(), and antlr.actions.csharp.ActionLexer.mTREE().
final void antlr.actions.csharp.ActionLexer.mVAR_ASSIGN | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.ActionTransInfo.assignToRoot, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.ActionTransInfo.refRuleRoot, antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, antlr.actions.csharp.ActionLexer.transInfo, and antlr.actions.csharp.ActionLexerTokenTypes.VAR_ASSIGN.
Referenced by antlr.actions.csharp.ActionLexer.mAST_ITEM(), and antlr.actions.csharp.ActionLexer.mID_ELEMENT().
final void antlr.actions.csharp.ActionLexer.mWS | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.CharScanner.newline(), antlr.Token.setText(), antlr.Token.SKIP, antlr.CharScanner.text, and antlr.actions.csharp.ActionLexerTokenTypes.WS.
Referenced by antlr.actions.csharp.ActionLexer.mARG(), antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.csharp.ActionLexer.mAST_ITEM(), antlr.actions.csharp.ActionLexer.mID_ELEMENT(), antlr.actions.csharp.ActionLexer.mTEXT_ARG(), antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT(), antlr.actions.csharp.ActionLexer.mTEXT_ITEM(), and antlr.actions.csharp.ActionLexer.mTREE().
Token antlr.actions.csharp.ActionLexer.nextToken | ( | ) | throws TokenStreamException |
Implements antlr.TokenStream.
References antlr.CharScanner._returnToken, antlr.CharScanner.EOF_CHAR, antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.Token.getType(), antlr.Token.INVALID_TYPE, antlr.CharScanner.LA(), antlr.actions.csharp.ActionLexer.mACTION(), antlr.CharScanner.makeToken(), antlr.CharScanner.resetText(), antlr.Token.setType(), and antlr.CharScanner.uponEOF().
void antlr.actions.csharp.ActionLexer.reportError | ( | RecognitionException | e | ) |
void antlr.actions.csharp.ActionLexer.reportError | ( | String | s | ) |
void antlr.actions.csharp.ActionLexer.reportWarning | ( | String | s | ) |
References antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), and antlr.Tool.warning().
Referenced by antlr.actions.csharp.ActionLexer.mAST_ITEM().
void antlr.actions.csharp.ActionLexer.setLineOffset | ( | int | lineOffset | ) |
References antlr.CharScanner.setLine().
void antlr.actions.csharp.ActionLexer.setTool | ( | Tool | tool | ) |
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_0 = new BitSet(mk_tokenSet_0()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mACTION().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_1 = new BitSet(mk_tokenSet_1()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mSTUFF().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_10 = new BitSet(mk_tokenSet_10()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_11 = new BitSet(mk_tokenSet_11()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ARG().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_12 = new BitSet(mk_tokenSet_12()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ARG().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_13 = new BitSet(mk_tokenSet_13()) [static] |
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_14 = new BitSet(mk_tokenSet_14()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mID_ELEMENT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_15 = new BitSet(mk_tokenSet_15()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mID_ELEMENT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_16 = new BitSet(mk_tokenSet_16()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mID_ELEMENT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_17 = new BitSet(mk_tokenSet_17()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mID_ELEMENT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_18 = new BitSet(mk_tokenSet_18()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mID_ELEMENT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_19 = new BitSet(mk_tokenSet_19()) [static] |
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_2 = new BitSet(mk_tokenSet_2()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mSTUFF().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_20 = new BitSet(mk_tokenSet_20()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mARG().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_21 = new BitSet(mk_tokenSet_21()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mARG().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_22 = new BitSet(mk_tokenSet_22()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_23 = new BitSet(mk_tokenSet_23()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_24 = new BitSet(mk_tokenSet_24()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ARG_ID_ELEMENT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_25 = new BitSet(mk_tokenSet_25()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mINT_OR_FLOAT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_26 = new BitSet(mk_tokenSet_26()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mINT_OR_FLOAT().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_3 = new BitSet(mk_tokenSet_3()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mAST_ITEM().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_4 = new BitSet(mk_tokenSet_4()) [static] |
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_5 = new BitSet(mk_tokenSet_5()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ITEM().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_6 = new BitSet(mk_tokenSet_6()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mTEXT_ITEM().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_7 = new BitSet(mk_tokenSet_7()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mSTRING().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_8 = new BitSet(mk_tokenSet_8()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mCHAR().
final BitSet antlr.actions.csharp.ActionLexer._tokenSet_9 = new BitSet(mk_tokenSet_9()) [static] |
Referenced by antlr.actions.csharp.ActionLexer.mID().
Referenced by antlr.actions.csharp.ActionLexer.mAST_CONSTRUCTOR(), antlr.actions.csharp.ActionLexer.mAST_ITEM(), antlr.actions.csharp.ActionLexer.mID_ELEMENT(), antlr.actions.csharp.ActionLexer.mTEXT_ITEM(), antlr.actions.csharp.ActionLexer.mTREE(), and antlr.actions.csharp.ActionLexer.mTREE_ELEMENT().
int antlr.actions.csharp.ActionLexer.lineOffset = 0 [protected] |