C# 클래스 Antlr4.Runtime.Atn.ParserATNSimulator

상속: ATNSimulator
파일 보기 프로젝트 열기: antlr/antlr4 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
debug bool
debug_list_atn_decisions bool
decisionToDFA Antlr4.Runtime.Dfa.DFA[]
dfa_debug bool
retry_debug bool

보호된 프로퍼티들

프로퍼티 타입 설명
context ParserRuleContext
input ITokenStream
mergeCache MergeCache
parser Parser
startIndex int
thisDfa Antlr4.Runtime.Dfa.DFA

공개 메소드들

메소드 설명
AdaptivePredict ( ITokenStream input, int decision, ParserRuleContext outerContext ) : int
ClearDFA ( ) : void
DumpDeadEndConfigs ( NoViableAltException nvae ) : void
GetLookaheadName ( ITokenStream input ) : string
GetRuleName ( int index ) : string
GetTokenName ( int t ) : string
ParserATNSimulator ( ATN atn, DFA decisionToDFA, PredictionContextCache sharedContextCache ) : System
ParserATNSimulator ( Parser parser, ATN atn, DFA decisionToDFA, PredictionContextCache sharedContextCache ) : System
PrecedenceTransition ( ATNConfig config, PrecedencePredicateTransition pt, bool collectPredicates, bool inContext, bool fullCtx ) : ATNConfig
Reset ( ) : void
getParser ( ) : Parser

보호된 메소드들

메소드 설명
ActionTransition ( ATNConfig config, ActionTransition t ) : ATNConfig
AddDFAEdge ( DFA dfa, DFAState from, int t, DFAState to ) : DFAState
AddDFAState ( DFA dfa, DFAState D ) : DFAState
ApplyPrecedenceFilter ( ATNConfigSet configSet ) : ATNConfigSet
CanDropLoopEntryEdgeInLeftRecursiveRule ( ATNConfig config ) : bool
Closure ( ATNConfig config, ATNConfigSet configs, HashSet closureBusy, bool collectPredicates, bool fullCtx, bool treatEofAsEpsilon ) : void
ClosureCheckingStopState ( ATNConfig config, ATNConfigSet configSet, HashSet closureBusy, bool collectPredicates, bool fullCtx, int depth, bool treatEofAsEpsilon ) : void
Closure_ ( ATNConfig config, ATNConfigSet configs, HashSet closureBusy, bool collectPredicates, bool fullCtx, int depth, bool treatEofAsEpsilon ) : void
ComputeReachSet ( ATNConfigSet closure, int t, bool fullCtx ) : ATNConfigSet
ComputeStartState ( ATNState p, RuleContext ctx, bool fullCtx ) : ATNConfigSet
ComputeTargetState ( DFA dfa, DFAState previousD, int t ) : DFAState
EvalSemanticContext ( PredPrediction predPredictions, ParserRuleContext outerContext, bool complete ) : BitSet
EvalSemanticContext ( SemanticContext pred, ParserRuleContext parserCallStack, int alt, bool fullCtx ) : bool
ExecATN ( DFA dfa, DFAState s0, ITokenStream input, int startIndex, ParserRuleContext outerContext ) : int
ExecATNWithFullContext ( DFA dfa, DFAState D, ATNConfigSet s0, ITokenStream input, int startIndex, ParserRuleContext outerContext ) : int
GetConflictingAlts ( ATNConfigSet configSet ) : BitSet
GetConflictingAltsOrUniqueAlt ( ATNConfigSet configSet ) : BitSet
GetEpsilonTarget ( ATNConfig config, Transition t, bool collectPredicates, bool inContext, bool fullCtx, bool treatEofAsEpsilon ) : ATNConfig
GetExistingTargetState ( DFAState previousD, int t ) : DFAState
GetPredicatePredictions ( BitSet ambigAlts, SemanticContext altToPred ) : PredPrediction[]
GetPredsForAmbigAlts ( BitSet ambigAlts, ATNConfigSet configSet, int nalts ) : SemanticContext[]
GetReachableTarget ( Transition trans, int ttype ) : ATNState
GetSynValidOrSemInvalidAltThatFinishedDecisionEntryRule ( ATNConfigSet configs, ParserRuleContext outerContext ) : int
GetUniqueAlt ( ATNConfigSet configSet ) : int
NoViableAlt ( ITokenStream input, ParserRuleContext outerContext, ATNConfigSet configs, int startIndex ) : NoViableAltException
PredTransition ( ATNConfig config, PredicateTransition pt, bool collectPredicates, bool inContext, bool fullCtx ) : ATNConfig
PredicateDFAState ( DFAState dfaState, DecisionState decisionState ) : void
RemoveAllConfigsNotInRuleStopState ( ATNConfigSet configSet, bool lookToEndOfRule ) : ATNConfigSet
ReportAmbiguity ( DFA dfa, DFAState D, int startIndex, int stopIndex, bool exact, BitSet ambigAlts, ATNConfigSet configs ) : 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
RuleTransition ( ATNConfig config, RuleTransition t ) : ATNConfig
SplitAccordingToSemanticValidity ( ATNConfigSet configSet, ParserRuleContext outerContext ) : ATNConfigSet>.Pair
getAltThatFinishedDecisionEntryRule ( ATNConfigSet configSet ) : int

메소드 상세

ActionTransition() 보호된 메소드

protected ActionTransition ( ATNConfig config, ActionTransition t ) : ATNConfig
config ATNConfig
t ActionTransition
리턴 ATNConfig

AdaptivePredict() 공개 메소드

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

AddDFAEdge() 보호된 메소드

protected AddDFAEdge ( DFA dfa, DFAState from, int t, DFAState to ) : DFAState
dfa Antlr4.Runtime.Dfa.DFA
from Antlr4.Runtime.Dfa.DFAState
t int
to Antlr4.Runtime.Dfa.DFAState
리턴 Antlr4.Runtime.Dfa.DFAState

AddDFAState() 보호된 메소드

protected AddDFAState ( DFA dfa, DFAState D ) : DFAState
dfa Antlr4.Runtime.Dfa.DFA
D Antlr4.Runtime.Dfa.DFAState
리턴 Antlr4.Runtime.Dfa.DFAState

ApplyPrecedenceFilter() 보호된 메소드

protected ApplyPrecedenceFilter ( ATNConfigSet configSet ) : ATNConfigSet
configSet ATNConfigSet
리턴 ATNConfigSet

CanDropLoopEntryEdgeInLeftRecursiveRule() 보호된 메소드

protected CanDropLoopEntryEdgeInLeftRecursiveRule ( ATNConfig config ) : bool
config ATNConfig
리턴 bool

ClearDFA() 공개 메소드

public ClearDFA ( ) : void
리턴 void

Closure() 보호된 메소드

protected Closure ( ATNConfig config, ATNConfigSet configs, HashSet closureBusy, bool collectPredicates, bool fullCtx, bool treatEofAsEpsilon ) : void
config ATNConfig
configs ATNConfigSet
closureBusy HashSet
collectPredicates bool
fullCtx bool
treatEofAsEpsilon bool
리턴 void

ClosureCheckingStopState() 보호된 메소드

protected ClosureCheckingStopState ( ATNConfig config, ATNConfigSet configSet, HashSet closureBusy, bool collectPredicates, bool fullCtx, int depth, bool treatEofAsEpsilon ) : void
config ATNConfig
configSet ATNConfigSet
closureBusy HashSet
collectPredicates bool
fullCtx bool
depth int
treatEofAsEpsilon bool
리턴 void

Closure_() 보호된 메소드

protected Closure_ ( ATNConfig config, ATNConfigSet configs, HashSet closureBusy, bool collectPredicates, bool fullCtx, int depth, bool treatEofAsEpsilon ) : void
config ATNConfig
configs ATNConfigSet
closureBusy HashSet
collectPredicates bool
fullCtx bool
depth int
treatEofAsEpsilon bool
리턴 void

ComputeReachSet() 보호된 메소드

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

ComputeStartState() 보호된 메소드

protected ComputeStartState ( ATNState p, RuleContext ctx, bool fullCtx ) : ATNConfigSet
p ATNState
ctx RuleContext
fullCtx bool
리턴 ATNConfigSet

ComputeTargetState() 보호된 메소드

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

DumpDeadEndConfigs() 공개 메소드

public DumpDeadEndConfigs ( NoViableAltException nvae ) : void
nvae NoViableAltException
리턴 void

EvalSemanticContext() 보호된 메소드

protected EvalSemanticContext ( PredPrediction predPredictions, ParserRuleContext outerContext, bool complete ) : BitSet
predPredictions PredPrediction
outerContext ParserRuleContext
complete bool
리턴 Antlr4.Runtime.Sharpen.BitSet

EvalSemanticContext() 보호된 메소드

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

ExecATN() 보호된 메소드

protected ExecATN ( DFA dfa, DFAState s0, ITokenStream input, int startIndex, ParserRuleContext outerContext ) : int
dfa Antlr4.Runtime.Dfa.DFA
s0 Antlr4.Runtime.Dfa.DFAState
input ITokenStream
startIndex int
outerContext ParserRuleContext
리턴 int

ExecATNWithFullContext() 보호된 메소드

protected ExecATNWithFullContext ( DFA dfa, DFAState D, ATNConfigSet s0, ITokenStream input, int startIndex, ParserRuleContext outerContext ) : int
dfa Antlr4.Runtime.Dfa.DFA
D Antlr4.Runtime.Dfa.DFAState
s0 ATNConfigSet
input ITokenStream
startIndex int
outerContext ParserRuleContext
리턴 int

GetConflictingAlts() 보호된 메소드

protected GetConflictingAlts ( ATNConfigSet configSet ) : BitSet
configSet ATNConfigSet
리턴 Antlr4.Runtime.Sharpen.BitSet

GetConflictingAltsOrUniqueAlt() 보호된 메소드

protected GetConflictingAltsOrUniqueAlt ( ATNConfigSet configSet ) : BitSet
configSet ATNConfigSet
리턴 Antlr4.Runtime.Sharpen.BitSet

GetEpsilonTarget() 보호된 메소드

protected GetEpsilonTarget ( ATNConfig config, Transition t, bool collectPredicates, bool inContext, bool fullCtx, bool treatEofAsEpsilon ) : ATNConfig
config ATNConfig
t Transition
collectPredicates bool
inContext bool
fullCtx bool
treatEofAsEpsilon bool
리턴 ATNConfig

GetExistingTargetState() 보호된 메소드

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

GetLookaheadName() 공개 메소드

public GetLookaheadName ( ITokenStream input ) : string
input ITokenStream
리턴 string

GetPredicatePredictions() 보호된 메소드

protected GetPredicatePredictions ( BitSet ambigAlts, SemanticContext altToPred ) : PredPrediction[]
ambigAlts Antlr4.Runtime.Sharpen.BitSet
altToPred SemanticContext
리턴 PredPrediction[]

GetPredsForAmbigAlts() 보호된 메소드

protected GetPredsForAmbigAlts ( BitSet ambigAlts, ATNConfigSet configSet, int nalts ) : SemanticContext[]
ambigAlts Antlr4.Runtime.Sharpen.BitSet
configSet ATNConfigSet
nalts int
리턴 SemanticContext[]

GetReachableTarget() 보호된 메소드

protected GetReachableTarget ( Transition trans, int ttype ) : ATNState
trans Transition
ttype int
리턴 ATNState

GetRuleName() 공개 메소드

public GetRuleName ( int index ) : string
index int
리턴 string

GetSynValidOrSemInvalidAltThatFinishedDecisionEntryRule() 보호된 메소드

protected GetSynValidOrSemInvalidAltThatFinishedDecisionEntryRule ( ATNConfigSet configs, ParserRuleContext outerContext ) : int
configs ATNConfigSet
outerContext ParserRuleContext
리턴 int

GetTokenName() 공개 메소드

public GetTokenName ( int t ) : string
t int
리턴 string

GetUniqueAlt() 보호된 정적인 메소드

protected static GetUniqueAlt ( ATNConfigSet configSet ) : int
configSet ATNConfigSet
리턴 int

NoViableAlt() 보호된 메소드

protected NoViableAlt ( ITokenStream input, ParserRuleContext outerContext, ATNConfigSet configs, int startIndex ) : NoViableAltException
input ITokenStream
outerContext ParserRuleContext
configs ATNConfigSet
startIndex int
리턴 NoViableAltException

ParserATNSimulator() 공개 메소드

public ParserATNSimulator ( ATN atn, DFA decisionToDFA, PredictionContextCache sharedContextCache ) : System
atn ATN
decisionToDFA Antlr4.Runtime.Dfa.DFA
sharedContextCache PredictionContextCache
리턴 System

ParserATNSimulator() 공개 메소드

public ParserATNSimulator ( Parser parser, ATN atn, DFA decisionToDFA, PredictionContextCache sharedContextCache ) : System
parser Parser
atn ATN
decisionToDFA Antlr4.Runtime.Dfa.DFA
sharedContextCache PredictionContextCache
리턴 System

PrecedenceTransition() 공개 메소드

public PrecedenceTransition ( ATNConfig config, PrecedencePredicateTransition pt, bool collectPredicates, bool inContext, bool fullCtx ) : ATNConfig
config ATNConfig
pt PrecedencePredicateTransition
collectPredicates bool
inContext bool
fullCtx bool
리턴 ATNConfig

PredTransition() 보호된 메소드

protected PredTransition ( ATNConfig config, PredicateTransition pt, bool collectPredicates, bool inContext, bool fullCtx ) : ATNConfig
config ATNConfig
pt PredicateTransition
collectPredicates bool
inContext bool
fullCtx bool
리턴 ATNConfig

PredicateDFAState() 보호된 메소드

protected PredicateDFAState ( DFAState dfaState, DecisionState decisionState ) : void
dfaState Antlr4.Runtime.Dfa.DFAState
decisionState DecisionState
리턴 void

RemoveAllConfigsNotInRuleStopState() 보호된 메소드

protected RemoveAllConfigsNotInRuleStopState ( ATNConfigSet configSet, bool lookToEndOfRule ) : ATNConfigSet
configSet ATNConfigSet
lookToEndOfRule bool
리턴 ATNConfigSet

ReportAmbiguity() 보호된 메소드

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

ReportAttemptingFullContext() 보호된 메소드

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
리턴 void

ReportContextSensitivity() 보호된 메소드

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
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

RuleTransition() 보호된 메소드

protected RuleTransition ( ATNConfig config, RuleTransition t ) : ATNConfig
config ATNConfig
t RuleTransition
리턴 ATNConfig

SplitAccordingToSemanticValidity() 보호된 메소드

protected SplitAccordingToSemanticValidity ( ATNConfigSet configSet, ParserRuleContext outerContext ) : ATNConfigSet>.Pair
configSet ATNConfigSet
outerContext ParserRuleContext
리턴 ATNConfigSet>.Pair

getAltThatFinishedDecisionEntryRule() 보호된 메소드

protected getAltThatFinishedDecisionEntryRule ( ATNConfigSet configSet ) : int
configSet ATNConfigSet
리턴 int

getParser() 공개 메소드

public getParser ( ) : Parser
리턴 Parser

프로퍼티 상세

context 보호되어 있는 프로퍼티

protected ParserRuleContext context
리턴 ParserRuleContext

debug 공개적으로 정적으로 프로퍼티

public static bool debug
리턴 bool

debug_list_atn_decisions 공개적으로 정적으로 프로퍼티

public static bool debug_list_atn_decisions
리턴 bool

decisionToDFA 공개적으로 프로퍼티

public DFA[],Antlr4.Runtime.Dfa decisionToDFA
리턴 Antlr4.Runtime.Dfa.DFA[]

dfa_debug 공개적으로 정적으로 프로퍼티

public static bool dfa_debug
리턴 bool

input 보호되어 있는 프로퍼티

protected ITokenStream input
리턴 ITokenStream

mergeCache 보호되어 있는 프로퍼티

protected MergeCache,Antlr4.Runtime.Atn mergeCache
리턴 MergeCache

parser 보호되어 있는 프로퍼티

protected Parser parser
리턴 Parser

retry_debug 공개적으로 정적으로 프로퍼티

public static bool retry_debug
리턴 bool

startIndex 보호되어 있는 프로퍼티

protected int startIndex
리턴 int

thisDfa 보호되어 있는 프로퍼티

protected DFA,Antlr4.Runtime.Dfa thisDfa
리턴 Antlr4.Runtime.Dfa.DFA