Package org.antlr.v4.runtime.atn
package org.antlr.v4.runtime.atn
-
ClassDescriptionThis class represents profiling event information for an ambiguity.A tuple: (ATN state, predicted alt, syntactic, semantic context).The reason that we need this is because we don't want the hash map to use the standard hash code and equals.The following images show the relation of states and
ATNState.transitions
for various grammar constructs.Represents the type of recognizer an ATN applies to.TODO: make all transitions sets? no, should remove set edgesTerminal node of a simple(a|b|c)
block.The start of a regular(...)
block.Utility class to createAtomTransition
,RangeTransition
, andSetTransition
appropriately based on the range of the input.This class represents profiling event information for a context sensitivity.This is the base class for gathering detailed information about prediction events which occur during parsing.This class contains profiling gathered for a particular decision.This class represents profiling event information for a syntax error identified during prediction.Represents a single action which can be executed following the successful match of a lexer rule.Represents an executor for a sequence of lexer actions which traversed during the matching operation of a lexer rule (token).Represents the serialization type of aLexerAction
."dup" of ParserInterpreterWhen we hit an accept state in either the DFA or the ATN, we have to notify the character stream to start buffering characters viaIntStream.mark()
and record the current state.Implements thechannel
lexer action by callingLexer.setChannel(int)
with the assigned channel.Executes a custom lexer action by callingRecognizer.action(org.antlr.v4.runtime.RuleContext, int, int)
with the rule and action indexes assigned to the custom action.This implementation ofLexerAction
is used for tracking input offsets for position-dependent actions within aLexerActionExecutor
.Implements themode
lexer action by callingLexer.mode(int)
with the assigned mode.Implements themore
lexer action by callingLexer.more()
.Implements thepopMode
lexer action by callingLexer.popMode()
.Implements thepushMode
lexer action by callingLexer.pushMode(int)
with the assigned mode.Implements theskip
lexer action by callingLexer.skip()
.Implements thetype
lexer action by callingLexer.setType(int)
with the assigned type.This class represents profiling event information for tracking the lookahead depth required in order to make a prediction.Mark the end of a * or + loop.This class provides access to specific and aggregate statistics gathered during profiling of a parser.The embodiment of the adaptive LL(*), ALL(*), parsing strategy.Start of(A|B|...)+
loop.Decision state forA+
and(A|B)+
.This class represents profiling event information for semantic predicate evaluations which occur during prediction.TODO: this is old comment: A tree of semantic predicates from the grammar AST if label==SEMPRED.Used to cachePredictionContext
objects.This enumeration defines the prediction modes available in ANTLR 4 along with utility methods for analyzing configuration sets for conflicts and/or ambiguities.The last node in the ATN for a rule, unless that rule is the start symbol.A tree structure used to record the semantic context in which an ATN configuration is valid.A semantic context which is true whenever none of the contained contexts is false.This is the base class for semantic context "operators", which operate on a collection of semantic context "operands".A semantic context which is true whenever at least one of the contained contexts is true.A transition containing a set of values.The block that begins a closure loop.The Tokens rule start state linking to each lexer rule start stateAn ATN transition between any two ATN states.