How to reproduce:
- Go to Antlr Lab Site
- Click on the sample dropdown, and select either entry for Kotlin. (I'm assuming one entry is for kotlin-formal, but neither work)
- Click on the tab labeled Parser.
You'll see that the Lexer is incorrectly placed in the parser, instead of the kotlin parser. The sample does not function in this state.
Even with the kotlin parser in the correct place, a solution is needed for importing UnicodeClasses.g4, which the kotlin lexer relies on.
Otherwise, the sample will throw many implicit token errors. I usually have to manually copy the contents of unicodeClasses.g4 to the end of the lexer to use the kotlin grammar with antlr lab.