I've been writing a relational DB in Kotlin as a learning exercise, and I'd like to implement codegen for the expression evaluator (it's currently interpreted)
In Scala you have
quasiquotes
, which let you quote Scala code to have it be evaluated as an AST + compiled instead of interpreted
This makes codegen really easy compared to using something like Janino
Does Kotlin have something similar? Maybe in the K2 internal API's or something?
I didn't find anything on Google searching for