TruffleVM.eval(Source)
Jaroslav Tulach
jaroslav.tulach at oracle.com
Mon Aug 24 07:30:06 UTC 2015
Hi.
Originally I wanted to keep TruffleVM as separated from "language implementor
specific" Truffle APIs (like nodes, targets, etc.) as possible. That was the
reason I used URI as identification of a file to evaluate. However since then
I realized there is well encapsulated Source abstraction that many existing
languages already use. It took a while but today, I am giving you
eval(Source):
http://lafo.ssw.uni-linz.ac.at/javadoc/truffle/latest/com/oracle/truffle/api/vm/TruffleVM.html#eval-com.oracle.truffle.api.source.Source-
it replaces and unifies previous eval methods (which are now deprecated and
will be removed before final release). In addition to that we have a way to
associate MIME type with a Source, which is used behind the scene to select
the right TruffleLanguage for to be evaluated Source.
-jt
More information about the graal-dev
mailing list