sharwell/antlr4

Eliminate unnecessary lookahead in execDFA

Closed this issue · 1 comments

The current implementation of ParserATNSimulator.execDFA calls input.LA(1) for one more symbol than is necessary, which could cause a discrepancy in the results of lookahead profiling.

Fixed in 28919bb.