C# (CSharp) Antlr4.Runtime.Atn Namespace

Classes

Name Description
ATN
ATNConfig A tuple: (ATN state, predicted alt, syntactic, semantic context).
ATNConfig.ActionATNConfig
ATNConfig.ActionSemanticContextATNConfig
ATNConfig.SemanticContextATNConfig
ATNDeserializationOptions
ATNDeserializer
ATNSimulator
ATNState
AbstractPredicateTransition
ActionTransition
AmbiguityInfo This class represents profiling event information for an ambiguity.
ArrayPredictionContext
AtomTransition TODO: make all transitions sets? no, should remove set edges
BasicBlockStartState
BasicState
BlockEndState Terminal node of a simple (a|b|c) block.
BlockStartState The start of a regular (...) block.
ConflictInfo This class stores information about a configuration conflict.
ContextSensitivityInfo This class represents profiling event information for a context sensitivity.
DecisionEventInfo This is the base class for gathering detailed information about prediction events which occur during parsing.
DecisionInfo This class contains profiling gathered for a particular decision.
DecisionState
EmptyPredictionContext
EpsilonTransition
ErrorInfo This class represents profiling event information for a syntax error identified during prediction.
LL1Analyzer
LexerATNSimulator "dup" of ParserInterpreter
LexerATNSimulator.SimState When we hit an accept state in either the DFA or the ATN, we have to notify the character stream to start buffering characters via Antlr4.Runtime.IIntStream.Mark() and record the current state. The current sim state includes the current index into the input, the current line, and current character position in that line. Note that the Lexer is tracking the starting line and characterization of the token. These variables track the "state" of the simulator when it hits an accept state.

We track these variables separately for the DFA and ATN simulation because the DFA simulation often has to fail over to the ATN simulation. If the ATN simulation fails, we need the DFA to fall back to its previously accepted state, if any. If the ATN succeeds, then the ATN does the accept and the DFA simulator that invoked it can simply return the predicted token type.

LexerActionExecutor Represents an executor for a sequence of lexer actions which traversed during the matching operation of a lexer rule (token).
LexerChannelAction Implements the channel lexer action by calling Lexer.Channel with the assigned channel.
LexerCustomAction Executes a custom lexer action by calling Antlr4.Runtime.Recognizer{Symbol, ATNInterpreter}.Action(Antlr4.Runtime.RuleContext, int, int) with the rule and action indexes assigned to the custom action. The implementation of a custom action is added to the generated code for the lexer in an override of Antlr4.Runtime.Recognizer{Symbol, ATNInterpreter}.Action(Antlr4.Runtime.RuleContext, int, int) when the grammar is compiled.

This class may represent embedded actions created with the {...} syntax in ANTLR 4, as well as actions created for lexer commands where the command argument could not be evaluated when the grammar was compiled.

LexerIndexedCustomAction This implementation of ILexerAction is used for tracking input offsets for position-dependent actions within a LexerActionExecutor .

This action is not serialized as part of the ATN, and is only required for position-dependent lexer actions which appear at a location other than the end of a rule. For more information about DFA optimizations employed for lexer actions, see LexerActionExecutor.Append(LexerActionExecutor, ILexerAction) and LexerActionExecutor.FixOffsetBeforeMatch(int) .

LexerModeAction Implements the mode lexer action by calling Antlr4.Runtime.Lexer.Mode(int) with the assigned mode.
LexerMoreAction Implements the more lexer action by calling Antlr4.Runtime.Lexer.More() .

The more command does not have any parameters, so this action is implemented as a singleton instance exposed by Instance .

LexerPopModeAction Implements the popMode lexer action by calling Antlr4.Runtime.Lexer.PopMode() .

The popMode command does not have any parameters, so this action is implemented as a singleton instance exposed by Instance .

LexerPushModeAction Implements the pushMode lexer action by calling Antlr4.Runtime.Lexer.PushMode(int) with the assigned mode.
LexerSkipAction Implements the skip lexer action by calling Antlr4.Runtime.Lexer.Skip() .

The skip command does not have any parameters, so this action is implemented as a singleton instance exposed by Instance .

LexerTypeAction Implements the type lexer action by calling Lexer.Type with the assigned type.
LookaheadEventInfo This class represents profiling event information for tracking the lookahead depth required in order to make a prediction.
LoopEndState Mark the end of a * or + loop.
MergeCache
NotSetTransition
OrderedATNConfigSet
ParseInfo This class provides access to specific and aggregate statistics gathered during profiling of a parser.
ParserATNSimulator
PlusBlockStartState Start of (A|B|...)+ loop. Technically a decision state, but we don't use for code generation; somebody might need it, so I'm defining it for completeness. In reality, the PlusLoopbackState node is the real decision-making note for A+ .
PlusLoopbackState Decision state for A+ and (A|B)+ . It has two transitions: one to the loop back to start of the block and one to exit.
PrecedencePredicateTransition
PredicateEvalInfo This class represents profiling event information for semantic predicate evaluations which occur during prediction.
PredicateTransition TODO: this is old comment: A tree of semantic predicates from the grammar AST if label==SEMPRED.
PredictionContextCache
PredictionContextCache.IdentityCommutativePredictionContextOperands
PredictionContextCache.PredictionContextAndInt
ProfilingATNSimulator
RangeTransition
RuleStartState
RuleStopState The last node in the ATN for a rule, unless that rule is the start symbol.
RuleTransition
SetTransition A transition containing a set of values.
SimState
SimulatorState
SingletonPredictionContext
StarBlockStartState The block that begins a closure loop.
StarLoopEntryState
StarLoopbackState
TokensStartState The Tokens rule start state linking to each lexer rule start state
Transition An ATN transition between any two ATN states.
WildcardTransition