kotlin-spec
kotlin-spec copied to clipboard
How does this grammar file generate the PSI layer of Kotlin source code?
Does this grammar file have no relationship with the PSI layer of Kotlin source code anymore?
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?
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.