Is there an API for running Scala REPL programmatically? -
and it appears that it will not be equal
def run line ( Line: string): string But has anyone already written this?
There are many examples, but it can be hard to find here, the one I wrote last time :
The hard part is that the interpreter to load the scala jar. I have manually loaded the jar so that it can work with web-start, but in your case, the simple settings.usejavacp.value = true can be sufficient. You can see the interpreter here:
Comments
Post a Comment