antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

Create accessor for Go-based IntervalSet.intervals

Open JamesRTaylor opened this issue 3 years ago • 1 comments

Target: Go

Unlike the Java version, in the Go-based version of interval_sets, there's no way to access the IntervalSets.intervals field. This field is useful when using Parser.getExpectedTokens(). The alternative is to use IntervalSets#StringVerbose and parse the string returned (which is much more expensive).

JamesRTaylor avatar Aug 01 '22 02:08 JamesRTaylor

PR is here: https://github.com/antlr/antlr4/pull/3800

JamesRTaylor avatar Aug 01 '22 02:08 JamesRTaylor

@parrt Can close this - PR is merged.

jimidle avatar Aug 31 '22 05:08 jimidle