Embedding dotty compiler into an application...

49 views
Skip to first unread message

david crosson

unread,
Jun 25, 2017, 5:57:19 PM6/25/17
to dotty-internals
Hello,

is it already possible to embed dotty compiler in an experimental application, and have this application compile & load & run (in place) some external source code ?

to achieve the same kind of effects we can get with twitter util-eval (https://gist.github.com/ykskm/2275338#file-useconfig-scala)

David.

Guillaume Martres

unread,
Jun 25, 2017, 6:39:47 PM6/25/17
to dotty-i...@googlegroups.com
Yes, it's possible, but there is no high-level API that does exactly that, the
closest to this would be the REPL (https://github.com/lampepfl/dotty/tree/
master/compiler/src/dotty/tools/dotc/repl).

raphae...@free.fr

unread,
Jun 26, 2017, 4:50:48 PM6/26/17
to dotty-i...@googlegroups.com
What about JSR-223 ? Do you plan to support it ? If so, everything is already done in 2.12.

Raphael

Guillaume Martres

unread,
Jul 12, 2017, 9:04:45 AM7/12/17
to dotty-internals
JSR-223 is not supported by Dotty currently, someone would have to adapt the work that was done for Scala 2.
Reply all
Reply to author
Forward
0 new messages