hey, just curious, does anyone know of an intellij...
# intellij-plugins
r
hey, just curious, does anyone know of an intellij plugin that uses a parser combinator library to provide code support for a language? My company has a custom language that we use as a business level DSL, and I want to make an intellij plugin to support syntax highlighting (and hopefully in the future more complex static analysis). However, I really don't want to have to rewrite the parsing/lexing in the BNF and JFlex formats that the tutorials detail. Tangentially related, I was wondering, if a grammar was written using parser combinators in pure kotlin, could Kotlin multiplatform be used to publish targets for other platforms like JS?
h
IntelliJ syntax highlighting uses their PSI classes and depends on the JVM/other Java libs. Depending on the size of your language, you could implement the classes by yourself or rewrite the parser. There are other multiplatform parsers but without IntelliJ support.
p
However it’s possible that it would still be easier to rewrite the grammar in jflex as in the tutorials
r
Eh… imo there should be more support for alternative methods. The reason being, that it is extremely inconvenient to have to maintain the grammar in multiple different languages. Would be much nicer to maintain one grammar and be able to let IntelliJ handle the translation to its psi format
h
Starting with 2023.2 there is LSP support for Ultimate.
r
😱
😱😱😱😱😱😱
😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱 😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱 😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱 😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱 😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱
h
Just a guess, sunsetting AppCode could be one motivation