Closed bennyhuo closed 2 years ago
This is caused by a newer version of antlr lib.
antlr - The Antlr libraries to be used for this project.
\--- org.antlr:antlr4:4.+ -> 4.10.1
Force the version to 4.4.0 solve the problem.
The diagnositcs was introduced to prevent stackoverflow on EOF closures: https://github.com/antlr/antlr4/issues/3359 I'll fix the grammar ASAP.
@petukhovv what the meaning of EOF
inside semi
and semis
? I suggest removing since root rules kotlinFile
and script
already have EOF
at the end. It looks excessive.
It is not. Please run grammar tests before suggesting such changes.
On the second thought, it may be ok since we don't anymore have any rules that end with semi without ?
All that do contain a raw SEMICOLON token
I seems to be related to this declaration:
After I cloned the project, I ran ./gradlew :grammar:generateGrammarSource and got this error. Parser cannot be generated.