Open sarod opened 6 years ago
The more languages the better 😃 Eventually I want astexplorer to support server side languages (and actually run on them on server). I haven't thought to much about it yet though.
Probably the other way to parse Kotlin is to use IntelliJ's PSI / Kotlin compiler API like it is done in detekt (static Kotlin analyzer): https://github.com/arturbosch/detekt/blob/master/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/KtCompiler.kt
Probably the other way to parse Kotlin is to use IntelliJ's PSI / Kotlin compiler API like it is done in detekt (static Kotlin analyzer): https://github.com/arturbosch/detekt/blob/master/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/KtCompiler.kt
If that project can be compiled with Kotlin/Native, then it should be possible to compile it to Wasm and integrate just like we already integrate Rust parsing.
It would be nice to support Kotlin language.
Not sure if this would help but there is an antlr grammar available here: https://github.com/antlr/grammars-v4/tree/master/kotlin.
Thanks for this wonderful project. It is very useful to discover new language syntax.