On Feb 13, 2022, at 2:14 PM, 'Michael Toy' via antlr-discussion <antlr-di...@googlegroups.com> wrote:
I tried to stare at code and figure this out, and so far I am failing. Is it possible to convert a "stopIndex" of a token into a line/char pair? If all tokens began and ended on the same line I could use the ".line" of the token, but there are tokens (e.g. multi-line strings) where the end of the token might be several lines away from the beginning of the token.
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/CAK0V5025zGUfiJF9XRZUj%3DO53FVvMtzrPXmBJxUKmqH1E_us3w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/0574AB94-901E-47BA-A263-713307770C62%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/CAK0V503moETa3sP-C%3D9RZ0OVKER4cfbLMuwvpXcOgt7cSahBNQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/DE212FDF-02BA-43E7-941F-30F3FEECED18%40gmail.com.