Hello,
I am new to Neko and I have being involved in writing a clone of the
Rebol language, temporarily named Orca. The project is hosted here
http://trac.geekisp.com/orca. After reading some of the Neko doc's, I am
impressed, and I think it will be better to use Neko instead of keep
writing the interpreter in C. It seems Neko will help speed up the
coding. I have a couple of questions though.
That's exactly the goal of Neko. It's way more easy to generate a .neko
source file than to write an interpreter from scratch, and you can get
good speed from the beginning and already a good number of libraries.
Is it possible to create a single binary interactive interpreter
environment with Neko? Ideally, I would not want to have the end-user
install any libraries.
Once you have compiled you .n bytecode file, you can make a standalone
executable by running the following command :
nekotools boot myapp.n
That will create a "myapp.exe" (without exe extension on not-Windows
platform). You'll still have to distribute the neko dll and standard
libraries you're using.
Do you have a small example on how to write a compiler or interpreter
for Neko? I guess the parser/lexer could be done in C and spit out Neko
bytecode. But this seems not too appealing. NekoML looks like a better
alternative, but there is not much documentation.
Yes there is not so much documentation right now for NekoML. I really
need to fix that at some time. But there is a very good sample of a
compiler written in NekoML : the Neko compiler.
Full sources can be found in the neko/src/neko directory
Finally, Is the continuation support in 1.3 as powerful as Scheme
continuations. Does neko has a call-with-current-continuation form?
Due to some delay, continuations has b
--
Neko : One VM to run them all
(http://nekovm.org)