Uses of Class
org.antlr.v4.runtime.atn.ATNConfigSet
-
Packages that use ATNConfigSet Package Description org.antlr.v4.runtime org.antlr.v4.runtime.atn org.antlr.v4.runtime.dfa -
-
Uses of ATNConfigSet in org.antlr.v4.runtime
Methods in org.antlr.v4.runtime that return ATNConfigSet Modifier and Type Method Description ATNConfigSetLexerNoViableAltException. getDeadEndConfigs()ATNConfigSetNoViableAltException. getDeadEndConfigs()Methods in org.antlr.v4.runtime with parameters of type ATNConfigSet Modifier and Type Method Description protected BitSetDiagnosticErrorListener. getConflictingAlts(BitSet reportedAlts, ATNConfigSet configs)Computes the set of conflicting or ambiguous alternatives from a configuration set, if that information was not already provided by the parser.voidANTLRErrorListener. reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs)This method is called by the parser when a full-context prediction results in an ambiguity.voidBaseErrorListener. reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs)voidDiagnosticErrorListener. reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs)voidProxyErrorListener. reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs)voidANTLRErrorListener. reportAttemptingFullContext(Parser recognizer, DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, ATNConfigSet configs)This method is called when an SLL conflict occurs and the parser is about to use the full context information to make an LL decision.voidBaseErrorListener. reportAttemptingFullContext(Parser recognizer, DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, ATNConfigSet configs)voidDiagnosticErrorListener. reportAttemptingFullContext(Parser recognizer, DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, ATNConfigSet configs)voidProxyErrorListener. reportAttemptingFullContext(Parser recognizer, DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, ATNConfigSet configs)voidANTLRErrorListener. reportContextSensitivity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, int prediction, ATNConfigSet configs)This method is called by the parser when a full-context prediction has a unique result.voidBaseErrorListener. reportContextSensitivity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, int prediction, ATNConfigSet configs)voidDiagnosticErrorListener. reportContextSensitivity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, int prediction, ATNConfigSet configs)voidProxyErrorListener. reportContextSensitivity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, int prediction, ATNConfigSet configs)Constructors in org.antlr.v4.runtime with parameters of type ATNConfigSet Constructor Description LexerNoViableAltException(Lexer lexer, CharStream input, int startIndex, ATNConfigSet deadEndConfigs)NoViableAltException(Parser recognizer, TokenStream input, Token startToken, Token offendingToken, ATNConfigSet deadEndConfigs, ParserRuleContext ctx) -
Uses of ATNConfigSet in org.antlr.v4.runtime.atn
Subclasses of ATNConfigSet in org.antlr.v4.runtime.atn Modifier and Type Class Description classOrderedATNConfigSetFields in org.antlr.v4.runtime.atn declared as ATNConfigSet Modifier and Type Field Description ATNConfigSetDecisionEventInfo. configsThe configuration set containing additional information relevant to the prediction state when the current event occurred, ornullif no additional information is relevant or available.Methods in org.antlr.v4.runtime.atn that return ATNConfigSet Modifier and Type Method Description protected ATNConfigSetParserATNSimulator. applyPrecedenceFilter(ATNConfigSet configs)This method transforms the start state computed byParserATNSimulator.computeStartState(org.antlr.v4.runtime.atn.ATNState, org.antlr.v4.runtime.RuleContext, boolean)to the special start state used by a precedence DFA for a particular precedence value.protected ATNConfigSetParserATNSimulator. computeReachSet(ATNConfigSet closure, int t, boolean fullCtx)protected ATNConfigSetProfilingATNSimulator. computeReachSet(ATNConfigSet closure, int t, boolean fullCtx)protected ATNConfigSetLexerATNSimulator. computeStartState(CharStream input, ATNState p)protected ATNConfigSetParserATNSimulator. computeStartState(ATNState p, RuleContext ctx, boolean fullCtx)protected ATNConfigSetParserATNSimulator. removeAllConfigsNotInRuleStopState(ATNConfigSet configs, boolean lookToEndOfRule)Return a configuration set containing only the configurations fromconfigswhich are in aRuleStopState.Methods in org.antlr.v4.runtime.atn that return types with arguments of type ATNConfigSet Modifier and Type Method Description protected Pair<ATNConfigSet,ATNConfigSet>ParserATNSimulator. splitAccordingToSemanticValidity(ATNConfigSet configs, ParserRuleContext outerContext)Walk the list of configurations and split them according to those that have preds evaluating to true/false.protected Pair<ATNConfigSet,ATNConfigSet>ParserATNSimulator. splitAccordingToSemanticValidity(ATNConfigSet configs, ParserRuleContext outerContext)Walk the list of configurations and split them according to those that have preds evaluating to true/false.Methods in org.antlr.v4.runtime.atn with parameters of type ATNConfigSet Modifier and Type Method Description protected DFAStateLexerATNSimulator. addDFAEdge(DFAState from, int t, ATNConfigSet q)protected DFAStateLexerATNSimulator. addDFAState(ATNConfigSet configs)Add a new DFA state if there isn't one with this set of configurations already.static booleanPredictionMode. allConfigsInRuleStopStates(ATNConfigSet configs)Checks if all configurations inconfigsare in aRuleStopState.protected ATNConfigSetParserATNSimulator. applyPrecedenceFilter(ATNConfigSet configs)This method transforms the start state computed byParserATNSimulator.computeStartState(org.antlr.v4.runtime.atn.ATNState, org.antlr.v4.runtime.RuleContext, boolean)to the special start state used by a precedence DFA for a particular precedence value.protected booleanLexerATNSimulator. closure(CharStream input, LexerATNConfig config, ATNConfigSet configs, boolean currentAltReachedAcceptState, boolean speculative, boolean treatEofAsEpsilon)Since the alternatives within any lexer decision are ordered by preference, this method stops pursuing the closure as soon as an accept state is reached.protected voidParserATNSimulator. closure(ATNConfig config, ATNConfigSet configs, Set<ATNConfig> closureBusy, boolean collectPredicates, boolean fullCtx, boolean treatEofAsEpsilon)protected voidParserATNSimulator. closure_(ATNConfig config, ATNConfigSet configs, Set<ATNConfig> closureBusy, boolean collectPredicates, boolean fullCtx, int depth, boolean treatEofAsEpsilon)Do the actual work of walking epsilon edgesprotected voidParserATNSimulator. closureCheckingStopState(ATNConfig config, ATNConfigSet configs, Set<ATNConfig> closureBusy, boolean collectPredicates, boolean fullCtx, int depth, boolean treatEofAsEpsilon)protected ATNConfigSetParserATNSimulator. computeReachSet(ATNConfigSet closure, int t, boolean fullCtx)protected ATNConfigSetProfilingATNSimulator. computeReachSet(ATNConfigSet closure, int t, boolean fullCtx)protected intParserATNSimulator. execATNWithFullContext(DFA dfa, DFAState D, ATNConfigSet s0, TokenStream input, int startIndex, ParserRuleContext outerContext)protected intLexerATNSimulator. failOrAccept(LexerATNSimulator.SimState prevAccept, CharStream input, ATNConfigSet reach, int t)static BitSetPredictionMode. getAlts(ATNConfigSet configs)Get union of all alts from configs.protected intParserATNSimulator. getAltThatFinishedDecisionEntryRule(ATNConfigSet configs)protected BitSetParserATNSimulator. getConflictingAlts(ATNConfigSet configs)Gets aBitSetcontaining the alternatives inconfigswhich are part of one or more conflicting alternative subsets.protected BitSetParserATNSimulator. getConflictingAltsOrUniqueAlt(ATNConfigSet configs)Sam pointed out a problem with the previous definition, v3, of ambiguous states.static Collection<BitSet>PredictionMode. getConflictingAltSubsets(ATNConfigSet configs)This function gets the conflicting alt subsets from a configuration set.protected LexerATNConfigLexerATNSimulator. getEpsilonTarget(CharStream input, LexerATNConfig config, Transition t, ATNConfigSet configs, boolean speculative, boolean treatEofAsEpsilon)protected SemanticContext[]ParserATNSimulator. getPredsForAmbigAlts(BitSet ambigAlts, ATNConfigSet configs, int nalts)protected voidLexerATNSimulator. getReachableConfigSet(CharStream input, ATNConfigSet closure, ATNConfigSet reach, int t)Given a starting configuration set, figure out all ATN configurations we can reach upon inputt.static Map<ATNState,BitSet>PredictionMode. getStateToAltMap(ATNConfigSet configs)Get a map from state to alt subset from a configuration set.protected intParserATNSimulator. getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(ATNConfigSet configs, ParserRuleContext outerContext)This method is used to improve the localization of error messages by choosing an alternative rather than throwing aNoViableAltExceptionin particular prediction scenarios where theATNSimulator.ERRORstate was reached during ATN simulation.protected static intParserATNSimulator. getUniqueAlt(ATNConfigSet configs)static booleanPredictionMode. hasConfigInRuleStopState(ATNConfigSet configs)Checks if any configuration inconfigsis in aRuleStopState.static booleanPredictionMode. hasSLLConflictTerminatingPrediction(PredictionMode mode, ATNConfigSet configs)Computes the SLL prediction termination condition.static booleanPredictionMode. hasStateAssociatedWithOneAlt(ATNConfigSet configs)protected NoViableAltExceptionParserATNSimulator. noViableAlt(TokenStream input, ParserRuleContext outerContext, ATNConfigSet configs, int startIndex)protected ATNConfigSetParserATNSimulator. removeAllConfigsNotInRuleStopState(ATNConfigSet configs, boolean lookToEndOfRule)Return a configuration set containing only the configurations fromconfigswhich are in aRuleStopState.protected voidParserATNSimulator. reportAmbiguity(DFA dfa, DFAState D, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs)If context sensitive parsing, we know it's ambiguity not conflictprotected voidProfilingATNSimulator. reportAmbiguity(DFA dfa, DFAState D, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs)protected voidParserATNSimulator. reportAttemptingFullContext(DFA dfa, BitSet conflictingAlts, ATNConfigSet configs, int startIndex, int stopIndex)protected voidProfilingATNSimulator. reportAttemptingFullContext(DFA dfa, BitSet conflictingAlts, ATNConfigSet configs, int startIndex, int stopIndex)protected voidParserATNSimulator. reportContextSensitivity(DFA dfa, int prediction, ATNConfigSet configs, int startIndex, int stopIndex)protected voidProfilingATNSimulator. reportContextSensitivity(DFA dfa, int prediction, ATNConfigSet configs, int startIndex, int stopIndex)protected Pair<ATNConfigSet,ATNConfigSet>ParserATNSimulator. splitAccordingToSemanticValidity(ATNConfigSet configs, ParserRuleContext outerContext)Walk the list of configurations and split them according to those that have preds evaluating to true/false.Constructors in org.antlr.v4.runtime.atn with parameters of type ATNConfigSet Constructor Description AmbiguityInfo(int decision, ATNConfigSet configs, BitSet ambigAlts, TokenStream input, int startIndex, int stopIndex, boolean fullCtx)Constructs a new instance of theAmbiguityInfoclass with the specified detailed ambiguity information.ATNConfigSet(ATNConfigSet old)ContextSensitivityInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex)Constructs a new instance of theContextSensitivityInfoclass with the specified detailed context sensitivity information.DecisionEventInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex, boolean fullCtx)ErrorInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex, boolean fullCtx)Constructs a new instance of theErrorInfoclass with the specified detailed syntax error information.LookaheadEventInfo(int decision, ATNConfigSet configs, int predictedAlt, TokenStream input, int startIndex, int stopIndex, boolean fullCtx)Constructs a new instance of theLookaheadEventInfoclass with the specified detailed lookahead information. -
Uses of ATNConfigSet in org.antlr.v4.runtime.dfa
Fields in org.antlr.v4.runtime.dfa declared as ATNConfigSet Modifier and Type Field Description ATNConfigSetDFAState. configsConstructors in org.antlr.v4.runtime.dfa with parameters of type ATNConfigSet Constructor Description DFAState(ATNConfigSet configs)
-