This is copy of Kotlin Grammar defined in kotlin-spec.
Kotlin Team does not publish this library to maven. So I published it to maven central for convenience.
implementation("com.bennyhuo.kotlin:grammar-antlr:1.8.0")
For a better choice, you should try Strumenta/antlr-kotlin or kotlinx/ast.