antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

Deviation in parser_atn_simulator.go

Open sridharxp opened this issue 8 years ago • 2 comments

\go\work\src\sridharxp\antlr4\runtime\Go\antlr\parser_atn_simulator.go On line 1517, 1528, 1541 three identical lines deviate from java code. It has no effect on tests though. Is this intentional? code var interval = NewInterval(startIndex, stopIndex+1) code following java var interval = NewInterval(startIndex, stopIndex)

sridharxp avatar Oct 13 '16 05:10 sridharxp

Not sure, I'll need to look into this.

pboyer avatar Oct 13 '16 21:10 pboyer

They come under functions ReportAttemptingFullContext, ReportContextSensitivity, ReportAmbiguity. I compared with reportAttemptingFullContext, reportContextSensitivity, reportAmbiguity methods in ParserATNSimulator.java

sridharxp avatar Oct 13 '16 23:10 sridharxp