Package org.eolang.parser
Class EoLexer
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
- org.antlr.v4.runtime.Lexer
-
- org.eolang.parser.ProgramLexer
-
- org.eolang.parser.EoLexer
-
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource
public final class EoLexer extends ProgramLexer
Indentation-aware Lexer.- Since:
- 1.0
-
-
Field Summary
-
Fields inherited from class org.eolang.parser.ProgramLexer
_ATN, _decisionToDFA, _serializedATN, _sharedContextCache, ARROW, AT, BOOL, BYTES, channelNames, CHAR, COLON, COMMENT, CONST, COPY, DOT, DOTS, EOL, FLOAT, HASH, HEX, INT, LB, LSQ, META, MINUS, modeNames, NAME, PLUS, QUESTION, RB, REGEX, RHO, ROOT, RSQ, ruleNames, SIGMA, SLASH, SPACE, STAR, STRING, TEXT, tokenNames, VERTEX, VOCABULARY, XI
-
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 EoLexer(org.cactoos.Text txt)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.antlr.v4.runtime.Token
nextToken()
-
Methods inherited from class org.eolang.parser.ProgramLexer
getATN, getChannelNames, getGrammarFileName, getModeNames, getRuleNames, getSerializedATN, getTokenNames, getVocabulary
-
Methods inherited from class org.antlr.v4.runtime.Lexer
emit, 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
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
-
-
-
Constructor Detail
-
EoLexer
public EoLexer(org.cactoos.Text txt) throws IOException
Ctor.- Parameters:
txt
- Source code.- Throws:
IOException
- If fails.
-
-