C# Class Antlr4.Runtime.Atn.ATNConfig

A tuple: (ATN state, predicted alt, syntactic, semantic context).
A tuple: (ATN state, predicted alt, syntactic, semantic context). The syntactic context is a graph-structured stack node whose path(s) to the root is the rule invocation(s) chain used to arrive at the state. The semantic context is the tree of semantic predicates encountered before reaching an ATN state.
Exibir arquivo Open project: sharwell/antlr4cs Class Usage Examples

Public Methods

Method Description
AppendContext ( PredictionContext context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
AppendContext ( int context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
Clone ( ) : Antlr4.Runtime.Atn.ATNConfig
Contains ( Antlr4 subconfig ) : bool
Create ( ATNState state, int alt, PredictionContext context ) : Antlr4.Runtime.Atn.ATNConfig
Create ( ATNState state, int alt, PredictionContext context, Antlr4 semanticContext ) : Antlr4.Runtime.Atn.ATNConfig
Create ( ATNState state, int alt, PredictionContext context, Antlr4 semanticContext, LexerActionExecutor lexerActionExecutor ) : Antlr4.Runtime.Atn.ATNConfig
Equals ( Antlr4 other ) : bool
Equals ( object o ) : bool

An ATN configuration is equal to another if both have the same state, they predict the same alternative, and syntactic/semantic contexts are the same.

GetHashCode ( ) : int
ToDotString ( ) : string
ToString ( ) : string
ToString ( IRecognizer recog, bool showAlt ) : string
ToString ( IRecognizer recog, bool showAlt, bool showContext ) : string
Transform ( ATNState state, Antlr4 semanticContext, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
Transform ( ATNState state, LexerActionExecutor lexerActionExecutor, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
Transform ( ATNState state, PredictionContext context, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
Transform ( ATNState state, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig

Protected Methods

Method Description
ATNConfig ( ATNState state, int alt, PredictionContext context ) : System
ATNConfig ( Antlr4 c, ATNState state, PredictionContext context ) : System

Private Methods

Method Description
CheckNonGreedyDecision ( Antlr4 source, ATNState target ) : bool
Transform ( ATNState state, PredictionContext context, Antlr4 semanticContext, bool checkNonGreedy, LexerActionExecutor lexerActionExecutor ) : Antlr4.Runtime.Atn.ATNConfig

Method Details

ATNConfig() protected method

protected ATNConfig ( ATNState state, int alt, PredictionContext context ) : System
state ATNState
alt int
context PredictionContext
return System

ATNConfig() protected method

protected ATNConfig ( Antlr4 c, ATNState state, PredictionContext context ) : System
c Antlr4
state ATNState
context PredictionContext
return System

AppendContext() public method

public AppendContext ( PredictionContext context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
context PredictionContext
contextCache PredictionContextCache
return Antlr4.Runtime.Atn.ATNConfig

AppendContext() public method

public AppendContext ( int context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
context int
contextCache PredictionContextCache
return Antlr4.Runtime.Atn.ATNConfig

Clone() public method

public Clone ( ) : Antlr4.Runtime.Atn.ATNConfig
return Antlr4.Runtime.Atn.ATNConfig

Contains() public method

public Contains ( Antlr4 subconfig ) : bool
subconfig Antlr4
return bool

Create() public static method

public static Create ( ATNState state, int alt, PredictionContext context ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
alt int
context PredictionContext
return Antlr4.Runtime.Atn.ATNConfig

Create() public static method

public static Create ( ATNState state, int alt, PredictionContext context, Antlr4 semanticContext ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
alt int
context PredictionContext
semanticContext Antlr4
return Antlr4.Runtime.Atn.ATNConfig

Create() public static method

public static Create ( ATNState state, int alt, PredictionContext context, Antlr4 semanticContext, LexerActionExecutor lexerActionExecutor ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
alt int
context PredictionContext
semanticContext Antlr4
lexerActionExecutor LexerActionExecutor
return Antlr4.Runtime.Atn.ATNConfig

Equals() public method

public Equals ( Antlr4 other ) : bool
other Antlr4
return bool

Equals() public method

An ATN configuration is equal to another if both have the same state, they predict the same alternative, and syntactic/semantic contexts are the same.
public Equals ( object o ) : bool
o object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

ToDotString() public method

public ToDotString ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string

ToString() public method

public ToString ( IRecognizer recog, bool showAlt ) : string
recog IRecognizer
showAlt bool
return string

ToString() public method

public ToString ( IRecognizer recog, bool showAlt, bool showContext ) : string
recog IRecognizer
showAlt bool
showContext bool
return string

Transform() public method

public Transform ( ATNState state, Antlr4 semanticContext, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
semanticContext Antlr4
checkNonGreedy bool
return Antlr4.Runtime.Atn.ATNConfig

Transform() public method

public Transform ( ATNState state, LexerActionExecutor lexerActionExecutor, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
lexerActionExecutor LexerActionExecutor
checkNonGreedy bool
return Antlr4.Runtime.Atn.ATNConfig

Transform() public method

public Transform ( ATNState state, PredictionContext context, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
context PredictionContext
checkNonGreedy bool
return Antlr4.Runtime.Atn.ATNConfig

Transform() public method

public Transform ( ATNState state, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
checkNonGreedy bool
return Antlr4.Runtime.Atn.ATNConfig