- accept
void accept(CharStream input, LexerActionExecutor lexerActionExecutor, int startIndex, int index, int line, int charPos)
Undocumented in source. Be warned that the author may not have intended to support it.
- addDFAEdge
DFAState addDFAEdge(DFAState from, int t, ATNConfigSet q)
Undocumented in source. Be warned that the author may not have intended to support it.
- addDFAEdge
void addDFAEdge(DFAState p, int t, DFAState q)
Undocumented in source. Be warned that the author may not have intended to support it.
- addDFAState
DFAState addDFAState(ATNConfigSet configs)
Add a new DFA state if there isn't one with this set of
configurations already. This method also detects the first
configuration containing an ATN rule stop state. Later, when
traversing the DFA, we will know which rule to accept.
- captureSimState
void captureSimState(SimState settings, CharStream input, DFAState dfaState)
Undocumented in source. Be warned that the author may not have intended to support it.
- clearDFA
void clearDFA()
- closure
bool closure(CharStream input, LexerATNConfig config, ATNConfigSet configs, bool currentAltReachedAcceptState, bool speculative, bool treatEofAsEpsilon)
@uml
Since the alternatives within any lexer decision are ordered by
preference, this method stops pursuing the closure as soon as an accept
state is reached. After the first accept state is reached by depth-first
search from {@code config}, all other (potentially reachable) states for
this rule would have a lower priority.
- computeStartState
ATNConfigSet computeStartState(CharStream input, ATNState p)
Undocumented in source. Be warned that the author may not have intended to support it.
- computeTargetState
DFAState computeTargetState(CharStream input, DFAState s, int t)
@uml
Compute a target state for an edge in the DFA, and attempt to add the
computed state and corresponding edge to the DFA.
- consume
void consume(CharStream input)
Undocumented in source. Be warned that the author may not have intended to support it.
- copyState
void copyState(LexerATNSimulator simulator)
Undocumented in source. Be warned that the author may not have intended to support it.
- evaluatePredicate
bool evaluatePredicate(CharStream input, int ruleIndex, int predIndex, bool speculative)
Evaluate a predicate specified in the lexer.
- execATN
int execATN(CharStream input, DFAState ds0)
Undocumented in source. Be warned that the author may not have intended to support it.
- failOrAccept
int failOrAccept(SimState prevAccept, CharStream input, ATNConfigSet reach, int t)
Undocumented in source. Be warned that the author may not have intended to support it.
- getCharPositionInLine
int getCharPositionInLine()
Undocumented in source. Be warned that the author may not have intended to support it.
- getDFA
DFA getDFA(int mode)
Undocumented in source. Be warned that the author may not have intended to support it.
- getEpsilonTarget
LexerATNConfig getEpsilonTarget(CharStream input, LexerATNConfig config, Transition t, ATNConfigSet configs, bool speculative, bool treatEofAsEpsilon)
side-effect: can alter configs.hasSemanticContext
- getExistingTargetState
DFAState getExistingTargetState(DFAState s, int t)
@uml
Get an existing target state for an edge in the DFA. If the target state
for the edge has not yet been computed or is otherwise not available,
this method returns {@code null}.
- getLine
int getLine()
Undocumented in source. Be warned that the author may not have intended to support it.
- getReachableConfigSet
void getReachableConfigSet(CharStream input, ATNConfigSet closureATNConfigSet, ATNConfigSet reach, int t)
@uml
Given a starting configuration set, figure out all ATN configurations
we can reach upon input {@code t}. Parameter {@code reach} is a return
parameter.
- getReachableTarget
ATNState getReachableTarget(Transition trans, int t)
Undocumented in source. Be warned that the author may not have intended to support it.
- getText
string getText(CharStream input)
Undocumented in source. Be warned that the author may not have intended to support it.
- getTokenName
string getTokenName(int t)
Undocumented in source. Be warned that the author may not have intended to support it.
- match
int match(CharStream input, int mode)
Undocumented in source. Be warned that the author may not have intended to support it.
- matchATN
int matchATN(CharStream input)
Undocumented in source. Be warned that the author may not have intended to support it.
- reset
void reset()
- setCharPositionInLine
void setCharPositionInLine(int charPositionInLine)
Undocumented in source. Be warned that the author may not have intended to support it.
- setLine
void setLine(int line)
Undocumented in source. Be warned that the author may not have intended to support it.
"dup" of ParserInterpreter