What libraries/plugins used to create Kotlin language, e.g. grammer/parser/generator?


#1

What libraries/plugins used to create Kotlin language, e.g. grammer/parser/generator? I'm curious about it. I just looked the Kotlin source on github, but I'm not clear.


#2

JFlex (with JetBrains templates) for lexer, IntelliJ framework (PSI Builder) for parser.


#3

I see there is a [mps](http://www.jetbrains.com/mps/), is it possible to use it to develop Kotlin?


#4

Technically, yes (as Kotlin is written in Java and MPS supports Java). But we don't use MPS to develop Kotlin


#5

May I know the reason why you prefer jflex to mps? I want to write a small IDEA plugin to support a custom template language, I found javacc, antlr, mps, grammar-kit,jflex, but I don't know which one is best with IDEA. May I have your advice? Does mps have some performance issue or hard to learn? And why you choose jflex? Thanks :^O


#6

MPS is nothing like antlr or javacc. It doesn't operate on text.

If you seek advice on well-known tooling like JFlex, I’d point you to http://stackoverflow.com/


#7

Thank you!


#8

@freewind Looks that I want to to the same as you but don’t understand why I cannot export a simple Editor-Plugin from MPS
http://stackoverflow.com/questions/43111989/using-jetbrains-mps-to-create-an-editor-plugin