Class Python3Lexer
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
- org.antlr.v4.runtime.Lexer
-
- io.github.danielnaczo.python3parser.Python3Lexer
-
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource
public class Python3Lexer extends org.antlr.v4.runtime.Lexer
-
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN_ATNprotected static org.antlr.v4.runtime.dfa.DFA[]_decisionToDFAstatic java.lang.String_serializedATNprotected static org.antlr.v4.runtime.atn.PredictionContextCache_sharedContextCachestatic intADDstatic intADD_ASSIGNstatic intANDstatic intAND_ASSIGNstatic intAND_OPstatic intARROWstatic intASstatic intASSERTstatic intASSIGNstatic intASYNCstatic intATstatic intAT_ASSIGNstatic intAWAITstatic intBIN_INTEGERstatic intBREAKstatic intBYTES_LITERALstatic java.lang.String[]channelNamesstatic intCLASSstatic intCLOSE_BRACEstatic intCLOSE_BRACKstatic intCLOSE_PARENstatic intCOLONstatic intCOMMAstatic intCONTINUEstatic intDECIMAL_INTEGERstatic intDEFstatic intDELstatic intDIVstatic intDIV_ASSIGNstatic intDOTstatic intELIFstatic intELLIPSISstatic intELSEstatic intEQUALSstatic intEXCEPTstatic intFALSEstatic intFINALLYstatic intFLOAT_NUMBERstatic intFORstatic intFROMstatic intGLOBALstatic intGREATER_THANstatic intGT_EQstatic intHEX_INTEGERstatic intIDIVstatic intIDIV_ASSIGNstatic intIFstatic intIMAG_NUMBERstatic intIMPORTstatic intINstatic intINTEGERstatic intISstatic intLAMBDAstatic intLEFT_SHIFTstatic intLEFT_SHIFT_ASSIGNstatic intLESS_THANstatic intLT_EQstatic intMINUSstatic intMODstatic intMOD_ASSIGNstatic java.lang.String[]modeNamesstatic intMULT_ASSIGNstatic intNAMEstatic intNEWLINEstatic intNONEstatic intNONLOCALstatic intNOTstatic intNOT_EQ_1static intNOT_EQ_2static intNOT_OPstatic intNUMBERstatic intOCT_INTEGERstatic intOPEN_BRACEstatic intOPEN_BRACKstatic intOPEN_PARENstatic intORstatic intOR_ASSIGNstatic intOR_OPstatic intPASSstatic intPOWERstatic intPOWER_ASSIGNstatic intRAISEstatic intRETURNstatic intRIGHT_SHIFTstatic intRIGHT_SHIFT_ASSIGNstatic java.lang.String[]ruleNamesstatic intSEMI_COLONstatic intSKIP_static intSTARstatic intSTRINGstatic intSTRING_LITERALstatic intSUB_ASSIGNstatic java.lang.String[]tokenNamesDeprecated.UseVOCABULARYinstead.static intTRUEstatic intTRYstatic intUNKNOWN_CHARstatic org.antlr.v4.runtime.VocabularyVOCABULARYstatic intWHILEstatic intWITHstatic intXORstatic intXOR_ASSIGNstatic intYIELD-
Fields inherited from class org.antlr.v4.runtime.Lexer
_channel, _factory, _hitEOF, _input, _mode, _modeStack, _text, _token, _tokenFactorySourcePair, _tokenStartCharIndex, _tokenStartCharPositionInLine, _tokenStartLine, _type, DEFAULT_MODE, DEFAULT_TOKEN_CHANNEL, HIDDEN, MAX_CHAR_VALUE, MIN_CHAR_VALUE, MORE, SKIP
-
-
Constructor Summary
Constructors Constructor Description Python3Lexer(org.antlr.v4.runtime.CharStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaction(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex)voidemit(org.antlr.v4.runtime.Token t)org.antlr.v4.runtime.atn.ATNgetATN()java.lang.String[]getChannelNames()java.lang.StringgetGrammarFileName()java.lang.String[]getModeNames()java.lang.String[]getRuleNames()java.lang.StringgetSerializedATN()java.lang.String[]getTokenNames()Deprecated.org.antlr.v4.runtime.VocabularygetVocabulary()org.antlr.v4.runtime.TokennextToken()booleansempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)-
Methods inherited from class org.antlr.v4.runtime.Lexer
emit, emitEOF, getAllTokens, getChannel, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, notifyListeners, popMode, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skip
-
Methods inherited from class org.antlr.v4.runtime.Recognizer
addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, setInterpreter, setState
-
-
-
-
Field Detail
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA
-
_sharedContextCache
protected static final org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
NUMBER
public static final int NUMBER
- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
-
DEF
public static final int DEF
- See Also:
- Constant Field Values
-
RETURN
public static final int RETURN
- See Also:
- Constant Field Values
-
RAISE
public static final int RAISE
- See Also:
- Constant Field Values
-
FROM
public static final int FROM
- See Also:
- Constant Field Values
-
IMPORT
public static final int IMPORT
- See Also:
- Constant Field Values
-
AS
public static final int AS
- See Also:
- Constant Field Values
-
GLOBAL
public static final int GLOBAL
- See Also:
- Constant Field Values
-
NONLOCAL
public static final int NONLOCAL
- See Also:
- Constant Field Values
-
ASSERT
public static final int ASSERT
- See Also:
- Constant Field Values
-
IF
public static final int IF
- See Also:
- Constant Field Values
-
ELIF
public static final int ELIF
- See Also:
- Constant Field Values
-
ELSE
public static final int ELSE
- See Also:
- Constant Field Values
-
WHILE
public static final int WHILE
- See Also:
- Constant Field Values
-
FOR
public static final int FOR
- See Also:
- Constant Field Values
-
IN
public static final int IN
- See Also:
- Constant Field Values
-
TRY
public static final int TRY
- See Also:
- Constant Field Values
-
FINALLY
public static final int FINALLY
- See Also:
- Constant Field Values
-
WITH
public static final int WITH
- See Also:
- Constant Field Values
-
EXCEPT
public static final int EXCEPT
- See Also:
- Constant Field Values
-
LAMBDA
public static final int LAMBDA
- See Also:
- Constant Field Values
-
OR
public static final int OR
- See Also:
- Constant Field Values
-
AND
public static final int AND
- See Also:
- Constant Field Values
-
NOT
public static final int NOT
- See Also:
- Constant Field Values
-
IS
public static final int IS
- See Also:
- Constant Field Values
-
NONE
public static final int NONE
- See Also:
- Constant Field Values
-
TRUE
public static final int TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final int FALSE
- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
YIELD
public static final int YIELD
- See Also:
- Constant Field Values
-
DEL
public static final int DEL
- See Also:
- Constant Field Values
-
PASS
public static final int PASS
- See Also:
- Constant Field Values
-
CONTINUE
public static final int CONTINUE
- See Also:
- Constant Field Values
-
BREAK
public static final int BREAK
- See Also:
- Constant Field Values
-
ASYNC
public static final int ASYNC
- See Also:
- Constant Field Values
-
AWAIT
public static final int AWAIT
- See Also:
- Constant Field Values
-
NEWLINE
public static final int NEWLINE
- See Also:
- Constant Field Values
-
NAME
public static final int NAME
- See Also:
- Constant Field Values
-
STRING_LITERAL
public static final int STRING_LITERAL
- See Also:
- Constant Field Values
-
BYTES_LITERAL
public static final int BYTES_LITERAL
- See Also:
- Constant Field Values
-
DECIMAL_INTEGER
public static final int DECIMAL_INTEGER
- See Also:
- Constant Field Values
-
OCT_INTEGER
public static final int OCT_INTEGER
- See Also:
- Constant Field Values
-
HEX_INTEGER
public static final int HEX_INTEGER
- See Also:
- Constant Field Values
-
BIN_INTEGER
public static final int BIN_INTEGER
- See Also:
- Constant Field Values
-
FLOAT_NUMBER
public static final int FLOAT_NUMBER
- See Also:
- Constant Field Values
-
IMAG_NUMBER
public static final int IMAG_NUMBER
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
ELLIPSIS
public static final int ELLIPSIS
- See Also:
- Constant Field Values
-
STAR
public static final int STAR
- See Also:
- Constant Field Values
-
OPEN_PAREN
public static final int OPEN_PAREN
- See Also:
- Constant Field Values
-
CLOSE_PAREN
public static final int CLOSE_PAREN
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
SEMI_COLON
public static final int SEMI_COLON
- See Also:
- Constant Field Values
-
POWER
public static final int POWER
- See Also:
- Constant Field Values
-
ASSIGN
public static final int ASSIGN
- See Also:
- Constant Field Values
-
OPEN_BRACK
public static final int OPEN_BRACK
- See Also:
- Constant Field Values
-
CLOSE_BRACK
public static final int CLOSE_BRACK
- See Also:
- Constant Field Values
-
OR_OP
public static final int OR_OP
- See Also:
- Constant Field Values
-
XOR
public static final int XOR
- See Also:
- Constant Field Values
-
AND_OP
public static final int AND_OP
- See Also:
- Constant Field Values
-
LEFT_SHIFT
public static final int LEFT_SHIFT
- See Also:
- Constant Field Values
-
RIGHT_SHIFT
public static final int RIGHT_SHIFT
- See Also:
- Constant Field Values
-
ADD
public static final int ADD
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
DIV
public static final int DIV
- See Also:
- Constant Field Values
-
MOD
public static final int MOD
- See Also:
- Constant Field Values
-
IDIV
public static final int IDIV
- See Also:
- Constant Field Values
-
NOT_OP
public static final int NOT_OP
- See Also:
- Constant Field Values
-
OPEN_BRACE
public static final int OPEN_BRACE
- See Also:
- Constant Field Values
-
CLOSE_BRACE
public static final int CLOSE_BRACE
- See Also:
- Constant Field Values
-
LESS_THAN
public static final int LESS_THAN
- See Also:
- Constant Field Values
-
GREATER_THAN
public static final int GREATER_THAN
- See Also:
- Constant Field Values
-
EQUALS
public static final int EQUALS
- See Also:
- Constant Field Values
-
GT_EQ
public static final int GT_EQ
- See Also:
- Constant Field Values
-
LT_EQ
public static final int LT_EQ
- See Also:
- Constant Field Values
-
NOT_EQ_1
public static final int NOT_EQ_1
- See Also:
- Constant Field Values
-
NOT_EQ_2
public static final int NOT_EQ_2
- See Also:
- Constant Field Values
-
AT
public static final int AT
- See Also:
- Constant Field Values
-
ARROW
public static final int ARROW
- See Also:
- Constant Field Values
-
ADD_ASSIGN
public static final int ADD_ASSIGN
- See Also:
- Constant Field Values
-
SUB_ASSIGN
public static final int SUB_ASSIGN
- See Also:
- Constant Field Values
-
MULT_ASSIGN
public static final int MULT_ASSIGN
- See Also:
- Constant Field Values
-
AT_ASSIGN
public static final int AT_ASSIGN
- See Also:
- Constant Field Values
-
DIV_ASSIGN
public static final int DIV_ASSIGN
- See Also:
- Constant Field Values
-
MOD_ASSIGN
public static final int MOD_ASSIGN
- See Also:
- Constant Field Values
-
AND_ASSIGN
public static final int AND_ASSIGN
- See Also:
- Constant Field Values
-
OR_ASSIGN
public static final int OR_ASSIGN
- See Also:
- Constant Field Values
-
XOR_ASSIGN
public static final int XOR_ASSIGN
- See Also:
- Constant Field Values
-
LEFT_SHIFT_ASSIGN
public static final int LEFT_SHIFT_ASSIGN
- See Also:
- Constant Field Values
-
RIGHT_SHIFT_ASSIGN
public static final int RIGHT_SHIFT_ASSIGN
- See Also:
- Constant Field Values
-
POWER_ASSIGN
public static final int POWER_ASSIGN
- See Also:
- Constant Field Values
-
IDIV_ASSIGN
public static final int IDIV_ASSIGN
- See Also:
- Constant Field Values
-
SKIP_
public static final int SKIP_
- See Also:
- Constant Field Values
-
UNKNOWN_CHAR
public static final int UNKNOWN_CHAR
- See Also:
- Constant Field Values
-
channelNames
public static java.lang.String[] channelNames
-
modeNames
public static java.lang.String[] modeNames
-
ruleNames
public static final java.lang.String[] ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final java.lang.String[] tokenNames
Deprecated.UseVOCABULARYinstead.
-
_serializedATN
public static final java.lang.String _serializedATN
- See Also:
- Constant Field Values
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Method Detail
-
getTokenNames
@Deprecated public java.lang.String[] getTokenNames()
Deprecated.- Overrides:
getTokenNamesin classorg.antlr.v4.runtime.Lexer
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabularyin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
emit
public void emit(org.antlr.v4.runtime.Token t)
- Overrides:
emitin classorg.antlr.v4.runtime.Lexer
-
nextToken
public org.antlr.v4.runtime.Token nextToken()
- Specified by:
nextTokenin interfaceorg.antlr.v4.runtime.TokenSource- Overrides:
nextTokenin classorg.antlr.v4.runtime.Lexer
-
getGrammarFileName
public java.lang.String getGrammarFileName()
- Specified by:
getGrammarFileNamein classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
public java.lang.String[] getRuleNames()
- Specified by:
getRuleNamesin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
public java.lang.String getSerializedATN()
- Overrides:
getSerializedATNin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
public java.lang.String[] getChannelNames()
- Overrides:
getChannelNamesin classorg.antlr.v4.runtime.Lexer
-
getModeNames
public java.lang.String[] getModeNames()
- Overrides:
getModeNamesin classorg.antlr.v4.runtime.Lexer
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATNin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
action
public void action(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int actionIndex)- Overrides:
actionin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
sempred
public boolean sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)- Overrides:
sempredin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
-