Launch Scala REPL programmatically?

后端 未结 1 1572
醉酒成梦
醉酒成梦 2021-02-20 14:14

I would like to launch a Scala Swing application from the command line, then after the application is started, drop into the Scala REPL to use as a control interface.

Id

相关标签:
1条回答
  • 2021-02-20 14:31

    You are may be asking about the same thing, as this question, are you? There is other stuff you can do. There's a way to just call REPL with a code, and get an answer back, which, depending on what you want, may be more appropriate. If that's what you want, just clarify it and I'll research into it.

    As for Java2D terminal, I think it is enough to use Console's setIn, setOut and setErr, but I might be mistaken. You might want to take a look at how some other efforts which embed REPL in the environment do. I think there are at least three of them, but a quick search only Kojo, which is based on Netbeans.

    0 讨论(0)
提交回复
热议问题