| Package | Description |
|---|---|
| org.antlr.v4.runtime.atn |
| Modifier and Type | Field and Description |
|---|---|
protected DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> |
ParserATNSimulator.mergeCache
Each prediction operation uses a cache for merge of prediction contexts.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ATNConfigSet.add(ATNConfig config,
DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> mergeCache)
Adding a new config means merging contexts with existing configs for
(s, i, pi, _)
We use (s,i,pi) as key
|
static PredictionContext |
PredictionContext.merge(PredictionContext a,
PredictionContext b,
boolean rootIsWildcard,
DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> mergeCache)
Two contexts conflict() if they are equals() or one is a stack suffix
of the other.
|
static PredictionContext |
PredictionContext.mergeArrays(ArrayPredictionContext a,
ArrayPredictionContext b,
boolean rootIsWildcard,
DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> mergeCache) |
static PredictionContext |
PredictionContext.mergeSingletons(SingletonPredictionContext a,
SingletonPredictionContext b,
boolean rootIsWildcard,
DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> mergeCache) |
Copyright © 2012. All Rights Reserved.