Aiden Nibali a écrit :
Hey all,

I have been playing around with the code at http://nekovm.org/doc/vm with the ultimate goal of writing some Ruby bindings. However, I can't figure out how to change the example so that it runs from Neko source code in a string rather than from bytecode on disk. As far as I can tell, the compiler is actually written in Neko, but I don't know how to properly invoke it from C.

Is it possible to get a simple example of compiling Neko code in memory to a function callable from C?

You can do that by using NekoML.
See how it's done by "nekoc -console" in neko/src/neko/Console.nml
If you compile your nekoml code to neko, you should be able to call its functions from neko.

Nicolas

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to