Package antlr.actions.python
Class CodeLexer
java.lang.Object
antlr.CharScanner
antlr.actions.python.CodeLexer
- All Implemented Interfaces:
CodeLexerTokenTypes,TokenStream
-
Field Summary
FieldsFields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepthFields inherited from interface antlr.actions.python.CodeLexerTokenTypes
ACTION, COMMENT, EOF, IGNWS, ML_COMMENT, NULL_TREE_LOOKAHEAD, SL_COMMENT, STUFF -
Constructor Summary
ConstructorsConstructorDescriptionCodeLexer(InputBuffer ib) CodeLexer(LexerSharedInputState state) CodeLexer(InputStream in) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidmACTION(boolean _createToken) protected final voidmCOMMENT(boolean _createToken) protected final voidmIGNWS(boolean _createToken) protected final voidmML_COMMENT(boolean _createToken) protected final voidmSL_COMMENT(boolean _createToken) protected final voidmSTUFF(boolean _createToken) voidParser error-reporting function can be overridden in subclassvoidParser error-reporting function can be overridden in subclassvoidParser warning-reporting function can be overridden in subclassvoidsetLineOffset(int lineOffset) Methods inherited from class antlr.CharScanner
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
-
Field Details
-
lineOffset
protected int lineOffset -
_tokenSet_0
-
_tokenSet_1
-
-
Constructor Details
-
CodeLexer
-
CodeLexer
-
CodeLexer
-
CodeLexer
-
-
Method Details
-
setLineOffset
public void setLineOffset(int lineOffset) -
reportError
Description copied from class:CharScannerParser error-reporting function can be overridden in subclass- Overrides:
reportErrorin classCharScanner
-
reportError
Description copied from class:CharScannerParser error-reporting function can be overridden in subclass- Overrides:
reportErrorin classCharScanner
-
reportWarning
Description copied from class:CharScannerParser warning-reporting function can be overridden in subclass- Overrides:
reportWarningin classCharScanner
-
nextToken
- Specified by:
nextTokenin interfaceTokenStream- Throws:
TokenStreamException
-
mACTION
public final void mACTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException -
mSTUFF
protected final void mSTUFF(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException -
mCOMMENT
protected final void mCOMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException -
mSL_COMMENT
protected final void mSL_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException -
mML_COMMENT
protected final void mML_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException -
mIGNWS
protected final void mIGNWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException
-