C# Класс Antlr4.Runtime.Atn.ATN

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
grammarType ATNType
lexerActions ILexerAction[]
maxTokenType int
ruleToStartState Antlr4.Runtime.Atn.RuleStartState[]
ruleToStopState Antlr4.Runtime.Atn.RuleStopState[]
ruleToTokenType int[]

Защищенные свойства (Protected)

Свойство Тип Описание
LL1Table int>.ConcurrentDictionary

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetExpectedTokens ( int stateNumber, RuleContext context ) : IntervalSet
NextTokens ( ATNState s ) : IntervalSet
NextTokens ( ATNState s, PredictionContext ctx ) : IntervalSet

Описание методов

ATN() публичный Метод

Used for runtime deserialization of ATNs from strings
public ATN ( ATNType grammarType, int maxTokenType ) : System
grammarType ATNType
maxTokenType int
Результат System

AddState() публичный Метод

public AddState ( ATNState state ) : void
state ATNState
Результат void

ClearDFA() публичный Метод

public ClearDFA ( ) : void
Результат void

DefineDecisionState() публичный Метод

public DefineDecisionState ( DecisionState s ) : int
s DecisionState
Результат int

DefineMode() публичный Метод

public DefineMode ( string name, TokensStartState s ) : void
name string
s TokensStartState
Результат void

GetCachedContext() публичный Метод

public GetCachedContext ( PredictionContext context ) : PredictionContext
context PredictionContext
Результат PredictionContext

GetDecisionState() публичный Метод

public GetDecisionState ( int decision ) : DecisionState
decision int
Результат DecisionState

RemoveState() публичный Метод

public RemoveState ( ATNState state ) : void
state ATNState
Результат void

Описание свойств

LL1Table защищенное свойство

protected ConcurrentDictionary LL1Table
Результат int>.ConcurrentDictionary

grammarType публичное свойство

The type of the ATN.
public ATNType grammarType
Результат ATNType

lexerActions публичное свойство

For lexer ATNs, this is an array of ILexerAction objects which may be referenced by action transitions in the ATN.
public ILexerAction[] lexerActions
Результат ILexerAction[]

maxTokenType публичное свойство

The maximum value for any symbol recognized by a transition in the ATN.
public int maxTokenType
Результат int

ruleToStartState публичное свойство

Maps from rule index to starting state number.
public RuleStartState[],Antlr4.Runtime.Atn ruleToStartState
Результат Antlr4.Runtime.Atn.RuleStartState[]

ruleToStopState публичное свойство

Maps from rule index to stop state number.
public RuleStopState[],Antlr4.Runtime.Atn ruleToStopState
Результат Antlr4.Runtime.Atn.RuleStopState[]

ruleToTokenType публичное свойство

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
Результат int[]