Kotlin ometa



Ometa: http://tinlizzie.org/ometa/

Question: Is there a Kotlin port of Ometa anywhere?

Longer Question:

There is a cool pattern matching DSL called Ometa. I have tried googling for a Kotlin Ometa library, but could not find any. Does one exist?


I don’t know Ometa, but they describe themself as “object-oriented language for pattern matching”. So it’s more a language syntax than a library.

The only way to integrate it in kotlin would be to create a compiler plugin, or something like that.

If you look for something close to pattern matching you can still use the when expression.