Join Slack
I'm programmatically accessing `kotlinc` and feeding it snippets to verify they can be compiled. Is ...
# scripting
r
raulraja
08/14/2017, 6:24 PM
I'm programmatically accessing
kotlinc
and feeding it snippets to verify they can be compiled. Is there a way to also evaluate expressions and obtain their results in the same way the
kotlinc
REPL does? Any help or pointers in the right direction are appreciated 🙂
i
ilya.chernikov
08/17/2017, 9:04 AM
The simplest and the most future-proof way is to use JSR-223. For sample scripting host implementation and tests see this project -
https://github.com/JetBrains/kotlin/tree/master/libraries/examples/kotlin-jsr223-local-example
r
raulraja
08/17/2017, 9:14 AM
thanks
@ilya.chernikov
! I'll check it out
5
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by