| Package | Description |
|---|---|
| org.antlr.v4.runtime.atn | |
| org.antlr.v4.runtime.dfa |
| Modifier and Type | Class and Description |
|---|---|
static class |
SemanticContext.AND
A semantic context which is true whenever none of the contained contexts
is false.
|
static class |
SemanticContext.Operator
This is the base class for semantic context "operators", which operate on
a collection of semantic context "operands".
|
static class |
SemanticContext.OR
A semantic context which is true whenever at least one of the contained
contexts is true.
|
static class |
SemanticContext.PrecedencePredicate |
static class |
SemanticContext.Predicate |
| Modifier and Type | Field and Description |
|---|---|
static SemanticContext |
SemanticContext.NONE
The default
SemanticContext, which is semantically equivalent to
a predicate of the form {true}?. |
SemanticContext[] |
SemanticContext.AND.opnds |
SemanticContext[] |
SemanticContext.OR.opnds |
SemanticContext |
PredicateEvalInfo.semctx
The semantic context which was evaluated.
|
| Modifier and Type | Method and Description |
|---|---|
static SemanticContext |
SemanticContext.and(SemanticContext a,
SemanticContext b) |
SemanticContext |
SemanticContext.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack)
Evaluate the precedence predicates for the context and reduce the result.
|
SemanticContext |
SemanticContext.PrecedencePredicate.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
SemanticContext |
SemanticContext.AND.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
SemanticContext |
SemanticContext.OR.evalPrecedence(Recognizer<?,?> parser,
RuleContext parserCallStack) |
protected SemanticContext[] |
ParserATNSimulator.getPredsForAmbigAlts(BitSet ambigAlts,
ATNConfigSet configs,
int nalts) |
SemanticContext |
ATNConfig.getSemanticContext() |
static SemanticContext |
SemanticContext.or(SemanticContext a,
SemanticContext b) |
| Modifier and Type | Method and Description |
|---|---|
abstract Collection<SemanticContext> |
SemanticContext.Operator.getOperands()
Gets the operands for the semantic context operator.
|
Collection<SemanticContext> |
SemanticContext.AND.getOperands() |
Collection<SemanticContext> |
SemanticContext.OR.getOperands() |
| Modifier and Type | Method and Description |
|---|---|
static SemanticContext |
SemanticContext.and(SemanticContext a,
SemanticContext b) |
static ATNConfig |
ATNConfig.create(ATNState state,
int alt,
PredictionContext context,
SemanticContext semanticContext) |
static ATNConfig |
ATNConfig.create(ATNState state,
int alt,
PredictionContext context,
SemanticContext semanticContext,
LexerActionExecutor lexerActionExecutor) |
protected boolean |
ProfilingATNSimulator.evalSemanticContext(SemanticContext pred,
ParserRuleContext parserCallStack,
int alt) |
protected boolean |
ParserATNSimulator.evalSemanticContext(SemanticContext pred,
ParserRuleContext parserCallStack,
int alt)
Evaluate a semantic context within a specific parser context.
|
protected DFAState.PredPrediction[] |
ParserATNSimulator.getPredicatePredictions(BitSet ambigAlts,
SemanticContext[] altToPred) |
static SemanticContext |
SemanticContext.or(SemanticContext a,
SemanticContext b) |
ATNConfig |
ATNConfig.transform(ATNState state,
SemanticContext semanticContext,
boolean checkNonGreedy) |
| Constructor and Description |
|---|
AND(SemanticContext a,
SemanticContext b) |
OR(SemanticContext a,
SemanticContext b) |
PredicateEvalInfo(SimulatorState state,
int decision,
TokenStream input,
int startIndex,
int stopIndex,
SemanticContext semctx,
boolean evalResult,
int predictedAlt)
Constructs a new instance of the
PredicateEvalInfo class with the
specified detailed predicate evaluation information. |
| Modifier and Type | Field and Description |
|---|---|
SemanticContext |
DFAState.PredPrediction.pred |
| Constructor and Description |
|---|
PredPrediction(SemanticContext pred,
int alt) |
Copyright © 1992–2024 Daniel Sun. All rights reserved.