C# Class Antlr4.Runtime.Atn.ATN

Afficher le fichier Open project: sharwell/antlr4cs Class Usage Examples

Méthodes publiques

Свойство Type Description
grammarType ATNType
lexerActions ILexerAction[]
maxTokenType int
ruleToStartState Antlr4.Runtime.Atn.RuleStartState[]
ruleToStopState Antlr4.Runtime.Atn.RuleStopState[]
ruleToTokenType int[]

Protected Properties

Свойство Type Description
LL1Table int>.ConcurrentDictionary

Méthodes publiques

Méthode Description
ATN ( ATNType grammarType, int maxTokenType ) : System

Used for runtime deserialization of ATNs from strings

AddState ( ATNState state ) : void
ClearDFA ( ) : void
DefineDecisionState ( DecisionState s ) : int
DefineMode ( string name, TokensStartState s ) : void
GetCachedContext ( PredictionContext context ) : PredictionContext
GetDecisionState ( int decision ) : DecisionState
RemoveState ( ATNState state ) : void

Private Methods

Méthode Description
GetExpectedTokens ( int stateNumber, RuleContext context ) : IntervalSet
NextTokens ( ATNState s ) : IntervalSet
NextTokens ( ATNState s, PredictionContext ctx ) : IntervalSet

Method Details

ATN() public méthode

Used for runtime deserialization of ATNs from strings
public ATN ( ATNType grammarType, int maxTokenType ) : System
grammarType ATNType
maxTokenType int
Résultat System

AddState() public méthode

public AddState ( ATNState state ) : void
state ATNState
Résultat void

ClearDFA() public méthode

public ClearDFA ( ) : void
Résultat void

DefineDecisionState() public méthode

public DefineDecisionState ( DecisionState s ) : int
s DecisionState
Résultat int

DefineMode() public méthode

public DefineMode ( string name, TokensStartState s ) : void
name string
s TokensStartState
Résultat void

GetCachedContext() public méthode

public GetCachedContext ( PredictionContext context ) : PredictionContext
context PredictionContext
Résultat PredictionContext

GetDecisionState() public méthode

public GetDecisionState ( int decision ) : DecisionState
decision int
Résultat DecisionState

RemoveState() public méthode

public RemoveState ( ATNState state ) : void
state ATNState
Résultat void

Property Details

LL1Table protected_oe property

protected ConcurrentDictionary LL1Table
Résultat int>.ConcurrentDictionary

grammarType public_oe property

The type of the ATN.
public ATNType grammarType
Résultat ATNType

lexerActions public_oe property

For lexer ATNs, this is an array of ILexerAction objects which may be referenced by action transitions in the ATN.
public ILexerAction[] lexerActions
Résultat ILexerAction[]

maxTokenType public_oe property

The maximum value for any symbol recognized by a transition in the ATN.
public int maxTokenType
Résultat int

ruleToStartState public_oe property

Maps from rule index to starting state number.
public RuleStartState[],Antlr4.Runtime.Atn ruleToStartState
Résultat Antlr4.Runtime.Atn.RuleStartState[]

ruleToStopState public_oe property

Maps from rule index to stop state number.
public RuleStopState[],Antlr4.Runtime.Atn ruleToStopState
Résultat Antlr4.Runtime.Atn.RuleStopState[]

ruleToTokenType public_oe property

For lexer ATNs, this maps the rule index to the resulting token type.
For lexer ATNs, this maps the rule index to the resulting token type. For parser ATNs, this maps the rule index to the generated bypass token type if the ATNDeserializationOptions.GenerateRuleBypassTransitions() deserialization option was specified; otherwise, this is .
public int[] ruleToTokenType
Résultat int[]