returns a ParseRuleContext object with start and stop token pointing to EOF for zero-length input. This library returns start as expected, but stop property value is undefined. This breaks the logic of searching for the rule bounds (from parseTree.start!.start to parseTree.stop!.stop). I've added additional checks, but it would be nice not to have them at all.
In java ANTLR4 implementation the code like:
returns a ParseRuleContext object with
start
andstop
token pointing to EOF for zero-length input. This library returnsstart
as expected, butstop
property value is undefined. This breaks the logic of searching for the rule bounds (from parseTree.start!.start to parseTree.stop!.stop). I've added additional checks, but it would be nice not to have them at all.antlr4ng version 3.0.4 antlr4ng-cli version 2.0.0