kotlin-spec icon indicating copy to clipboard operation
kotlin-spec copied to clipboard

How does this grammar file generate the PSI layer of Kotlin source code?

Open Terrency opened this issue 2 years ago • 2 comments

Does this grammar file have no relationship with the PSI layer of Kotlin source code anymore?

Terrency avatar Jul 18 '23 08:07 Terrency

Hi mate! It was never the intention to have any kind of relationship between the ANTLR grammar and the Kotlin PSI. What are your reasons for wanting this?

ice-phoenix avatar Jul 18 '23 08:07 ice-phoenix

Hi Ice, It's great to receive your response. As I have been going through the Kotlin source code, I noticed that it only includes Flex, but there is no BNF syntax section. So when I came across the ANTLR grammar portion here, I was curious about how Kotlin generates the PSI layer code. I wondered if ANTLR's grammar could be used to automatically generate the PSI.

Terrency avatar Jul 18 '23 08:07 Terrency