pboyer / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
Other
26 stars 1 forks source link

Deviation in parser_atn_simulator.go #70

Open sridharxp opened 8 years ago

sridharxp commented 8 years ago

\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)

pboyer commented 8 years ago

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

sridharxp commented 8 years ago

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