For what is worth we use the ScriptEngine support ...
# kapt
r
For what is worth we use the ScriptEngine support in ank to compile and evaluate kotlin code in the fly. Should be fairly easy to build those combinators in any testing framework https://github.com/kategory/ank/blob/master/ank-core/src/main/kotlin/io/kategory/ank/interpreter.kt#L88-L91