Public Member Functions | |
CodeLexer (String s, String fname, int line, Tool tool) | |
void | setLineOffset (int lineOffset) |
void | reportError (RecognitionException e) |
void | reportError (String s) |
void | reportWarning (String s) |
CodeLexer (InputStream in) | |
CodeLexer (Reader in) | |
CodeLexer (InputBuffer ib) | |
CodeLexer (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()) |
Protected Member Functions | |
final void | mSTUFF (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
final void | mCOMMENT (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 | mIGNWS (boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException |
Protected Attributes | |
int | lineOffset = 0 |
antlr.actions.python.CodeLexer.CodeLexer | ( | String | s, | |
String | fname, | |||
int | line, | |||
Tool | tool | |||
) |
References antlr.CharScanner.setFilename(), and antlr.CharScanner.setLine().
antlr.actions.python.CodeLexer.CodeLexer | ( | InputStream | in | ) |
antlr.actions.python.CodeLexer.CodeLexer | ( | Reader | in | ) |
antlr.actions.python.CodeLexer.CodeLexer | ( | InputBuffer | ib | ) |
antlr.actions.python.CodeLexer.CodeLexer | ( | LexerSharedInputState | state | ) |
final void antlr.actions.python.CodeLexer.mACTION | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException |
References antlr.CharScanner._returnToken, antlr.actions.python.CodeLexerTokenTypes.ACTION, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.actions.python.CodeLexer.mSTUFF(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.python.CodeLexer.nextToken().
final void antlr.actions.python.CodeLexer.mCOMMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.python.CodeLexerTokenTypes.COMMENT, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.getColumn(), antlr.CharScanner.getFilename(), antlr.CharScanner.getLine(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.actions.python.CodeLexer.mML_COMMENT(), antlr.actions.python.CodeLexer.mSL_COMMENT(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.python.CodeLexer.mSTUFF().
final void antlr.actions.python.CodeLexer.mIGNWS | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.ANTLRStringBuffer.getBuffer(), antlr.actions.python.CodeLexerTokenTypes.IGNWS, antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.python.CodeLexer.mML_COMMENT().
final void antlr.actions.python.CodeLexer.mML_COMMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.ANTLRStringBuffer.append(), antlr.CharScanner.EOF_CHAR, antlr.ANTLRStringBuffer.getBuffer(), antlr.CharScanner.LA(), antlr.ANTLRStringBuffer.length, antlr.CharScanner.makeToken(), antlr.CharScanner.match(), antlr.CharScanner.matchNot(), antlr.actions.python.CodeLexer.mIGNWS(), antlr.actions.python.CodeLexerTokenTypes.ML_COMMENT, antlr.CharScanner.newline(), antlr.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, and antlr.CharScanner.text.
Referenced by antlr.actions.python.CodeLexer.mCOMMENT().
final void antlr.actions.python.CodeLexer.mSL_COMMENT | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.ANTLRStringBuffer.append(), 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.ANTLRStringBuffer.setLength(), antlr.Token.setText(), antlr.Token.SKIP, antlr.actions.python.CodeLexerTokenTypes.SL_COMMENT, and antlr.CharScanner.text.
Referenced by antlr.actions.python.CodeLexer.mCOMMENT().
final void antlr.actions.python.CodeLexer.mSTUFF | ( | boolean | _createToken | ) | throws RecognitionException, CharStreamException, TokenStreamException [protected] |
References antlr.CharScanner._returnToken, antlr.actions.python.CodeLexer._tokenSet_0, antlr.actions.python.CodeLexer._tokenSet_1, 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.python.CodeLexer.mCOMMENT(), antlr.collections.impl.BitSet.member(), antlr.CharScanner.newline(), antlr.Token.setText(), antlr.Token.SKIP, antlr.actions.python.CodeLexerTokenTypes.STUFF, and antlr.CharScanner.text.
Referenced by antlr.actions.python.CodeLexer.mACTION().
Token antlr.actions.python.CodeLexer.nextToken | ( | ) | throws TokenStreamException |
void antlr.actions.python.CodeLexer.reportError | ( | RecognitionException | e | ) |
void antlr.actions.python.CodeLexer.reportError | ( | String | s | ) |
void antlr.actions.python.CodeLexer.reportWarning | ( | String | s | ) |
void antlr.actions.python.CodeLexer.setLineOffset | ( | int | lineOffset | ) |
References antlr.CharScanner.setLine().
final BitSet antlr.actions.python.CodeLexer._tokenSet_0 = new BitSet(mk_tokenSet_0()) [static] |
Referenced by antlr.actions.python.CodeLexer.mSTUFF().
final BitSet antlr.actions.python.CodeLexer._tokenSet_1 = new BitSet(mk_tokenSet_1()) [static] |
Referenced by antlr.actions.python.CodeLexer.mSTUFF().
int antlr.actions.python.CodeLexer.lineOffset = 0 [protected] |