forked from jasder/antlr
Add a comment describing a possible future optimization to applyPrecedenceFilter
This commit is contained in:
parent
10558a7bea
commit
336a1197e8
|
@ -1064,6 +1064,10 @@ public class ParserATNSimulator extends ATNSimulator {
|
|||
continue;
|
||||
}
|
||||
|
||||
/* In the future, this elimination step could be updated to also
|
||||
* filter the prediction context for alternatives predicting alt>1
|
||||
* (basically a graph subtraction algorithm).
|
||||
*/
|
||||
PredictionContext context = statesFromAlt1.get(config.state.stateNumber);
|
||||
if (context != null && context.equals(config.context)) {
|
||||
// eliminated
|
||||
|
|
Loading…
Reference in New Issue