CELLexer class

Constructors

CELLexer(CharStream input)

Properties

allTokens → List<Token>
Return a list of all Token objects in input char stream. Forces load of all tokens. Does not include EOF token.
no setterinherited
channel ↔ int
The channel number for the current token
getter/setter pairinherited
channelNames → List<String>
final
charIndex → int
What is the index of the current character of lookahead?
no setterinherited
charPositionInLine ↔ int
Get the index into the current line for the current position in the input stream. The first character on a line has position 0.
getter/setter pairinherited
errorListenerDispatch → ErrorListener
no setterinherited
errorListeners → List<ErrorListener>
no setterinherited
grammarFileName → String
For debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method.
no setter
hashCode → int
The hash code for this object.
no setterinherited
inputStream ↔ CharStream
Set the char stream and reset the lexer
covariantgetter/setter pairinherited
interpreter ↔ LexerATNSimulator?
The ATN interpreter used by the recognizer for prediction.
getter/setter pairinherited
line ↔ int
Get the line number for the current position in the input stream. The first line in the input is line 1.
getter/setter pairinherited
mode_ ↔ int
getter/setter pairinherited
modeNames → List<String>
final
parseInfo → ParseInfo?
If profiling during the parse/lex, this will return DecisionInfo records for each decision in recognizer in a ParseInfo object.
no setterinherited
ruleIndexMap → Map<String, int>
Get a map from rule names to rule indexes.
no setterinherited
ruleNames → List<String>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serializedATN → List<int>
If this recognizer was generated, it will have a serialized ATN representation of the grammar.
no setter
sourceName → String
Gets the name of the underlying input source. This method returns a non-null, non-empty string. If such a name is not known, this method returns {@link IntStream#UNKNOWN_SOURCE_NAME}.
no setterinherited
state ↔ int
getter/setter pairinherited
text ↔ String
Return the text matched so far for the current token or any text override.
getter/setter pairinherited
token → Token?
Override if emitting multiple tokens.
no setterinherited
tokenFactory ↔ TokenFactory<Token>
getter/setter pairinherited
tokenStartCharIndex ↔ int
What character index in the stream did the current token start at? Needed, for example, to get the text for current token. Set at the start of nextToken.
getter/setter pairinherited
tokenStartCharPositionInLine ↔ int
The character position of first character within the line
getter/setter pairinherited
tokenStartLine ↔ int
The line on which the first character of the token resides
getter/setter pairinherited
tokenTypeMap → Map<String, int>
Get a map from token names to token types.
no setterinherited
type ↔ int
The token type for the current token
getter/setter pairinherited
vocabulary → Vocabulary
Get the vocabulary used by the recognizer.
no setter

Methods

action(RuleContext? _localctx, int ruleIndex, int actionIndex) → void
inherited
addErrorListener(ErrorListener listener) → void
inherited
emit() → Token
The standard method called to automatically emit a token at the outermost lexical rule. The token object should point into the char buffer start..stop. If there is a text override in 'text', use that to set the token's text. Override this method to emit custom Token objects or provide a new factory.
inherited
emitEOF() → Token
inherited
emitToken(Token token) → void
By default does not support multiple emits per nextToken invocation for efficiency reasons. Subclass and override this method, nextToken, and getToken (to push tokens into a list and pull from that list rather than a single variable as this implementation does).
inherited
getATN() → ATN
Get the ATN used by the recognizer for prediction.
getCharErrorDisplay(int c) → String
inherited
getErrorDisplay(String s) → String
inherited
getErrorHeader(RecognitionException<IntStream> e) → String
What is the error header, normally line/character position information? */
inherited
getTokenType(String tokenName) → int
inherited
mode(int m) → void
inherited
more() → void
inherited
nextToken() → Token
Return a token from this source; i.e., match a token on the char stream.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners(LexerNoViableAltException e) → void
inherited
popMode() → int
inherited
precpred(RuleContext? localctx, int precedence) → bool
inherited
pushMode(int m) → void
inherited
recover(RecognitionException<IntStream> re) → void
Lexers can normally match any char in it's vocabulary after matching a token, so do the easy thing and just kill a character and hope it all works out. You can instead use the rule invocation stack to do sophisticated error recovery if you are in a fragment rule.
inherited
removeErrorListener(ErrorListener listener) → void
inherited
removeErrorListeners() → void
inherited
reset([bool resetInput = false]) → void
inherited
sempred(RuleContext? _localctx, int ruleIndex, int actionIndex) → bool
inherited
setToken(Token _token) → void
inherited
skip() → void
Instruct the lexer to skip creating a token for current lexer rule and look for another token. nextToken() knows to keep looking when a lexer rule finishes with token set to SKIP_TOKEN. Recall that if token==null at end of any token rule, it creates one for you and emits it.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

checkVersion → void Function()
final
VOCABULARY → Vocabulary
final

Constants

TOKEN_BYTES → const int
TOKEN_CEL_FALSE → const int
TOKEN_CEL_TRUE → const int
TOKEN_COLON → const int
TOKEN_COMMA → const int
TOKEN_COMMENT → const int
TOKEN_DOT → const int
TOKEN_EQUALS → const int
TOKEN_EXCLAM → const int
TOKEN_GREATER → const int
TOKEN_GREATER_EQUALS → const int
TOKEN_IDENTIFIER → const int
TOKEN_IN → const int
TOKEN_LBRACE → const int
TOKEN_LBRACKET → const int
TOKEN_LESS → const int
TOKEN_LESS_EQUALS → const int
TOKEN_LOGICAL_AND → const int
TOKEN_LOGICAL_OR → const int
TOKEN_LPAREN → const int
TOKEN_MINUS → const int
TOKEN_NOT_EQUALS → const int
TOKEN_NUL → const int
TOKEN_NUM_FLOAT → const int
TOKEN_NUM_INT → const int
TOKEN_NUM_UINT → const int
TOKEN_PERCENT → const int
TOKEN_PLUS → const int
TOKEN_QUESTIONMARK → const int
TOKEN_RBRACE → const int
TOKEN_RPAREN → const int
TOKEN_RPRACKET → const int
TOKEN_SLASH → const int
TOKEN_STAR → const int
TOKEN_STRING → const int
TOKEN_WHITESPACE → const int