https://kotlinlang.org logo
#getting-started
Title
# getting-started
g

Gavin Ray

07/30/2022, 5:30 PM
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
kotlin codegen library
=/
4 Views