The LL1Analyzer is mostly used for error messages to provide a list of expected tokens. Just check the call history to see where this class is used in the ANTLR4 runtime, it’s pretty simple.
>
> You know if an example exists (or a doc) ?
There’s no other example or doc I know of as this class is only a pretty simple ATN walk within a single rule (which makes it not very well suited for code completion). Instead you might be interested in this project:
https://github.com/mike-lischke/antlr4-c3 (which is written in Typescript - Java, Kotlin and C++ ports exist too).
Mike
--
www.soft-gems.net