C# Class Antlr4.Runtime.Atn.ProfilingATNSimulator

Inheritance: ParserATNSimulator
显示文件 Open project: antlr/antlr4 Class Usage Examples

Protected Properties

Property Type Description
conflictingAltResolvedBySLL int
currentDecision int
currentState Antlr4.Runtime.Dfa.DFAState
decisions Antlr4.Runtime.Atn.DecisionInfo[]
llStopIndex int
numDecisions int
sllStopIndex int

Public Methods

Method Description
AdaptivePredict ( ITokenStream input, int decision, ParserRuleContext outerContext ) : int
ProfilingATNSimulator ( Parser parser ) : System
getCurrentState ( ) : DFAState
getDecisionInfo ( ) : Antlr4.Runtime.Atn.DecisionInfo[]

Protected Methods

Method Description
ComputeReachSet ( ATNConfigSet closure, int t, bool fullCtx ) : ATNConfigSet
ComputeTargetState ( DFA dfa, DFAState previousD, int t ) : DFAState
EvalSemanticContext ( SemanticContext pred, ParserRuleContext parserCallStack, int alt, bool fullCtx ) : bool
GetExistingTargetState ( DFAState previousD, int t ) : DFAState
ReportAmbiguity ( DFA dfa, DFAState D, int startIndex, int stopIndex, bool exact, BitSet ambigAlts, ATNConfigSet configSet ) : void
ReportAttemptingFullContext ( DFA dfa, BitSet conflictingAlts, ATNConfigSet configs, int startIndex, int stopIndex ) : void
ReportContextSensitivity ( DFA dfa, int prediction, ATNConfigSet configs, int startIndex, int stopIndex ) : void

Method Details

AdaptivePredict() public method

public AdaptivePredict ( ITokenStream input, int decision, ParserRuleContext outerContext ) : int
input ITokenStream
decision int
outerContext ParserRuleContext
return int

ComputeReachSet() protected method

protected ComputeReachSet ( ATNConfigSet closure, int t, bool fullCtx ) : ATNConfigSet
closure ATNConfigSet
t int
fullCtx bool
return ATNConfigSet

ComputeTargetState() protected method

protected ComputeTargetState ( DFA dfa, DFAState previousD, int t ) : DFAState
dfa Antlr4.Runtime.Dfa.DFA
previousD Antlr4.Runtime.Dfa.DFAState
t int
return Antlr4.Runtime.Dfa.DFAState

EvalSemanticContext() protected method

protected EvalSemanticContext ( SemanticContext pred, ParserRuleContext parserCallStack, int alt, bool fullCtx ) : bool
pred SemanticContext
parserCallStack ParserRuleContext
alt int
fullCtx bool
return bool

GetExistingTargetState() protected method

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

ProfilingATNSimulator() public method

public ProfilingATNSimulator ( Parser parser ) : System
parser Parser
return System

ReportAmbiguity() protected method

protected ReportAmbiguity ( DFA dfa, DFAState D, int startIndex, int stopIndex, bool exact, BitSet ambigAlts, ATNConfigSet configSet ) : void
dfa Antlr4.Runtime.Dfa.DFA
D Antlr4.Runtime.Dfa.DFAState
startIndex int
stopIndex int
exact bool
ambigAlts Antlr4.Runtime.Sharpen.BitSet
configSet ATNConfigSet
return void

ReportAttemptingFullContext() protected method

protected ReportAttemptingFullContext ( DFA dfa, BitSet conflictingAlts, ATNConfigSet configs, int startIndex, int stopIndex ) : void
dfa Antlr4.Runtime.Dfa.DFA
conflictingAlts Antlr4.Runtime.Sharpen.BitSet
configs ATNConfigSet
startIndex int
stopIndex int
return void

ReportContextSensitivity() protected method

protected ReportContextSensitivity ( DFA dfa, int prediction, ATNConfigSet configs, int startIndex, int stopIndex ) : void
dfa Antlr4.Runtime.Dfa.DFA
prediction int
configs ATNConfigSet
startIndex int
stopIndex int
return void

getCurrentState() public method

public getCurrentState ( ) : DFAState
return Antlr4.Runtime.Dfa.DFAState

getDecisionInfo() public method

public getDecisionInfo ( ) : Antlr4.Runtime.Atn.DecisionInfo[]
return Antlr4.Runtime.Atn.DecisionInfo[]

Property Details

conflictingAltResolvedBySLL protected_oe property

protected int conflictingAltResolvedBySLL
return int

currentDecision protected_oe property

protected int currentDecision
return int

currentState protected_oe property

protected DFAState,Antlr4.Runtime.Dfa currentState
return Antlr4.Runtime.Dfa.DFAState

decisions protected_oe property

protected DecisionInfo[],Antlr4.Runtime.Atn decisions
return Antlr4.Runtime.Atn.DecisionInfo[]

llStopIndex protected_oe property

protected int llStopIndex
return int

numDecisions protected_oe property

protected int numDecisions
return int

sllStopIndex protected_oe property

protected int sllStopIndex
return int