C# Class Antlr4.Runtime.Atn.LexerATNSimulator

"dup" of ParserInterpreter
Inheritance: ATNSimulator
Afficher le fichier Open project: antlr/antlr4 Class Usage Examples

Méthodes publiques

Свойство Type Description
MAX_DFA_EDGE int
MIN_DFA_EDGE int
debug bool
decisionToDFA Antlr4.Runtime.Dfa.DFA[]
dfa_debug bool
match_calls int

Protected Properties

Свойство Type Description
charPositionInLine int
mode int
recog Lexer
startIndex int
thisLine int

Méthodes publiques

Méthode Description
ClearDFA ( ) : void
Consume ( ICharStream input ) : void
CopyState ( LexerATNSimulator simulator ) : void
GetDFA ( int mode ) : DFA
GetText ( ICharStream input ) : String
GetTokenName ( int t ) : String
LexerATNSimulator ( ATN atn, DFA decisionToDFA, PredictionContextCache sharedContextCache ) : System
LexerATNSimulator ( Lexer recog, ATN atn, DFA decisionToDFA, PredictionContextCache sharedContextCache ) : System
Match ( ICharStream input, int mode ) : int
Reset ( ) : void

Méthodes protégées

Méthode Description
Accept ( ICharStream input, LexerActionExecutor lexerActionExecutor, int startIndex, int index, int line, int charPos ) : void
AddDFAEdge ( DFAState from, int t, ATNConfigSet q ) : DFAState
AddDFAEdge ( DFAState p, int t, DFAState q ) : void
AddDFAState ( ATNConfigSet configSet ) : DFAState
CaptureSimState ( SimState settings, ICharStream input, DFAState dfaState ) : void
Closure ( ICharStream input, LexerATNConfig config, ATNConfigSet configs, bool currentAltReachedAcceptState, bool speculative, bool treatEofAsEpsilon ) : bool
ComputeStartState ( ICharStream input, ATNState p ) : ATNConfigSet
ComputeTargetState ( ICharStream input, DFAState s, int t ) : DFAState
EvaluatePredicate ( ICharStream input, int ruleIndex, int predIndex, bool speculative ) : bool
ExecATN ( ICharStream input, DFAState ds0 ) : int
FailOrAccept ( SimState prevAccept, ICharStream input, ATNConfigSet reach, int t ) : int
GetEpsilonTarget ( ICharStream input, LexerATNConfig config, Transition t, ATNConfigSet configs, bool speculative, bool treatEofAsEpsilon ) : LexerATNConfig
GetExistingTargetState ( DFAState s, int t ) : DFAState
GetReachableConfigSet ( ICharStream input, ATNConfigSet closure, ATNConfigSet reach, int t ) : void
GetReachableTarget ( Transition trans, int t ) : ATNState
MatchATN ( ICharStream input ) : int

Method Details

Accept() protected méthode

protected Accept ( ICharStream input, LexerActionExecutor lexerActionExecutor, int startIndex, int index, int line, int charPos ) : void
input ICharStream
lexerActionExecutor LexerActionExecutor
startIndex int
index int
line int
charPos int
Résultat void

AddDFAEdge() protected méthode

protected AddDFAEdge ( DFAState from, int t, ATNConfigSet q ) : DFAState
from Antlr4.Runtime.Dfa.DFAState
t int
q ATNConfigSet
Résultat Antlr4.Runtime.Dfa.DFAState

AddDFAEdge() protected méthode

protected AddDFAEdge ( DFAState p, int t, DFAState q ) : void
p Antlr4.Runtime.Dfa.DFAState
t int
q Antlr4.Runtime.Dfa.DFAState
Résultat void

AddDFAState() protected méthode

protected AddDFAState ( ATNConfigSet configSet ) : DFAState
configSet ATNConfigSet
Résultat Antlr4.Runtime.Dfa.DFAState

CaptureSimState() protected méthode

protected CaptureSimState ( SimState settings, ICharStream input, DFAState dfaState ) : void
settings SimState
input ICharStream
dfaState Antlr4.Runtime.Dfa.DFAState
Résultat void

ClearDFA() public méthode

public ClearDFA ( ) : void
Résultat void

Closure() protected méthode

protected Closure ( ICharStream input, LexerATNConfig config, ATNConfigSet configs, bool currentAltReachedAcceptState, bool speculative, bool treatEofAsEpsilon ) : bool
input ICharStream
config LexerATNConfig
configs ATNConfigSet
currentAltReachedAcceptState bool
speculative bool
treatEofAsEpsilon bool
Résultat bool

ComputeStartState() protected méthode

protected ComputeStartState ( ICharStream input, ATNState p ) : ATNConfigSet
input ICharStream
p ATNState
Résultat ATNConfigSet

ComputeTargetState() protected méthode

protected ComputeTargetState ( ICharStream input, DFAState s, int t ) : DFAState
input ICharStream
s Antlr4.Runtime.Dfa.DFAState
t int
Résultat Antlr4.Runtime.Dfa.DFAState

Consume() public méthode

public Consume ( ICharStream input ) : void
input ICharStream
Résultat void

CopyState() public méthode

public CopyState ( LexerATNSimulator simulator ) : void
simulator LexerATNSimulator
Résultat void

EvaluatePredicate() protected méthode

protected EvaluatePredicate ( ICharStream input, int ruleIndex, int predIndex, bool speculative ) : bool
input ICharStream
ruleIndex int
predIndex int
speculative bool
Résultat bool

ExecATN() protected méthode

protected ExecATN ( ICharStream input, DFAState ds0 ) : int
input ICharStream
ds0 Antlr4.Runtime.Dfa.DFAState
Résultat int

FailOrAccept() protected méthode

protected FailOrAccept ( SimState prevAccept, ICharStream input, ATNConfigSet reach, int t ) : int
prevAccept SimState
input ICharStream
reach ATNConfigSet
t int
Résultat int

GetDFA() public méthode

public GetDFA ( int mode ) : DFA
mode int
Résultat Antlr4.Runtime.Dfa.DFA

GetEpsilonTarget() protected méthode

protected GetEpsilonTarget ( ICharStream input, LexerATNConfig config, Transition t, ATNConfigSet configs, bool speculative, bool treatEofAsEpsilon ) : LexerATNConfig
input ICharStream
config LexerATNConfig
t Transition
configs ATNConfigSet
speculative bool
treatEofAsEpsilon bool
Résultat LexerATNConfig

GetExistingTargetState() protected méthode

protected GetExistingTargetState ( DFAState s, int t ) : DFAState
s Antlr4.Runtime.Dfa.DFAState
t int
Résultat Antlr4.Runtime.Dfa.DFAState

GetReachableConfigSet() protected méthode

protected GetReachableConfigSet ( ICharStream input, ATNConfigSet closure, ATNConfigSet reach, int t ) : void
input ICharStream
closure ATNConfigSet
reach ATNConfigSet
t int
Résultat void

GetReachableTarget() protected méthode

protected GetReachableTarget ( Transition trans, int t ) : ATNState
trans Transition
t int
Résultat ATNState

GetText() public méthode

public GetText ( ICharStream input ) : String
input ICharStream
Résultat String

GetTokenName() public méthode

public GetTokenName ( int t ) : String
t int
Résultat String

LexerATNSimulator() public méthode

public LexerATNSimulator ( ATN atn, DFA decisionToDFA, PredictionContextCache sharedContextCache ) : System
atn ATN
decisionToDFA Antlr4.Runtime.Dfa.DFA
sharedContextCache PredictionContextCache
Résultat System

LexerATNSimulator() public méthode

public LexerATNSimulator ( Lexer recog, ATN atn, DFA decisionToDFA, PredictionContextCache sharedContextCache ) : System
recog Lexer
atn ATN
decisionToDFA Antlr4.Runtime.Dfa.DFA
sharedContextCache PredictionContextCache
Résultat System

Match() public méthode

public Match ( ICharStream input, int mode ) : int
input ICharStream
mode int
Résultat int

MatchATN() protected méthode

protected MatchATN ( ICharStream input ) : int
input ICharStream
Résultat int

Reset() public méthode

public Reset ( ) : void
Résultat void

Property Details

MAX_DFA_EDGE public_oe static_oe property

public static int MAX_DFA_EDGE
Résultat int

MIN_DFA_EDGE public_oe static_oe property

public static int MIN_DFA_EDGE
Résultat int

charPositionInLine protected_oe property

protected int charPositionInLine
Résultat int

debug public_oe property

public bool debug
Résultat bool

decisionToDFA public_oe property

public DFA[],Antlr4.Runtime.Dfa decisionToDFA
Résultat Antlr4.Runtime.Dfa.DFA[]

dfa_debug public_oe property

public bool dfa_debug
Résultat bool

match_calls public_oe static_oe property

public static int match_calls
Résultat int

mode protected_oe property

protected int mode
Résultat int

recog protected_oe property

protected Lexer recog
Résultat Lexer

startIndex protected_oe property

protected int startIndex
Résultat int

thisLine protected_oe property

protected int thisLine
Résultat int