C# Class Antlr4.Runtime.Atn.LexerATNSimulator

"dup" of ParserInterpreter
Inheritance: ATNSimulator
Mostrar archivo Open project: antlr/antlr4 Class Usage Examples

Public Properties

Property 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

Property Type Description
charPositionInLine int
mode int
recog Lexer
startIndex int
thisLine int

Public Methods

Method 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

Protected Methods

Method 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 method

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
return void

AddDFAEdge() protected method

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

AddDFAEdge() protected method

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

AddDFAState() protected method

protected AddDFAState ( ATNConfigSet configSet ) : DFAState
configSet ATNConfigSet
return Antlr4.Runtime.Dfa.DFAState

CaptureSimState() protected method

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

ClearDFA() public method

public ClearDFA ( ) : void
return void

Closure() protected method

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
return bool

ComputeStartState() protected method

protected ComputeStartState ( ICharStream input, ATNState p ) : ATNConfigSet
input ICharStream
p ATNState
return ATNConfigSet

ComputeTargetState() protected method

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

Consume() public method

public Consume ( ICharStream input ) : void
input ICharStream
return void

CopyState() public method

public CopyState ( LexerATNSimulator simulator ) : void
simulator LexerATNSimulator
return void

EvaluatePredicate() protected method

protected EvaluatePredicate ( ICharStream input, int ruleIndex, int predIndex, bool speculative ) : bool
input ICharStream
ruleIndex int
predIndex int
speculative bool
return bool

ExecATN() protected method

protected ExecATN ( ICharStream input, DFAState ds0 ) : int
input ICharStream
ds0 Antlr4.Runtime.Dfa.DFAState
return int

FailOrAccept() protected method

protected FailOrAccept ( SimState prevAccept, ICharStream input, ATNConfigSet reach, int t ) : int
prevAccept SimState
input ICharStream
reach ATNConfigSet
t int
return int

GetDFA() public method

public GetDFA ( int mode ) : DFA
mode int
return Antlr4.Runtime.Dfa.DFA

GetEpsilonTarget() protected method

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
return LexerATNConfig

GetExistingTargetState() protected method

protected GetExistingTargetState ( DFAState s, int t ) : DFAState
s Antlr4.Runtime.Dfa.DFAState
t int
return Antlr4.Runtime.Dfa.DFAState

GetReachableConfigSet() protected method

protected GetReachableConfigSet ( ICharStream input, ATNConfigSet closure, ATNConfigSet reach, int t ) : void
input ICharStream
closure ATNConfigSet
reach ATNConfigSet
t int
return void

GetReachableTarget() protected method

protected GetReachableTarget ( Transition trans, int t ) : ATNState
trans Transition
t int
return ATNState

GetText() public method

public GetText ( ICharStream input ) : String
input ICharStream
return String

GetTokenName() public method

public GetTokenName ( int t ) : String
t int
return String

LexerATNSimulator() public method

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

LexerATNSimulator() public method

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

Match() public method

public Match ( ICharStream input, int mode ) : int
input ICharStream
mode int
return int

MatchATN() protected method

protected MatchATN ( ICharStream input ) : int
input ICharStream
return int

Reset() public method

public Reset ( ) : void
return void

Property Details

MAX_DFA_EDGE public_oe static_oe property

public static int MAX_DFA_EDGE
return int

MIN_DFA_EDGE public_oe static_oe property

public static int MIN_DFA_EDGE
return int

charPositionInLine protected_oe property

protected int charPositionInLine
return int

debug public_oe property

public bool debug
return bool

decisionToDFA public_oe property

public DFA[],Antlr4.Runtime.Dfa decisionToDFA
return Antlr4.Runtime.Dfa.DFA[]

dfa_debug public_oe property

public bool dfa_debug
return bool

match_calls public_oe static_oe property

public static int match_calls
return int

mode protected_oe property

protected int mode
return int

recog protected_oe property

protected Lexer recog
return Lexer

startIndex protected_oe property

protected int startIndex
return int

thisLine protected_oe property

protected int thisLine
return int