[Neko] Compile , load and unload modules
sorel.johann at inbox.com
Wed Nov 16 16:07:05 CET 2011
I'm starting to figure out how to setup my own paradigms on nekovm.
As you recomanded I'm exploring the neko and nekoml parser as examples to build my own parser.
But the NekoML syntax is sometimes hard to read, when mixing tuples declarations, functions calls. the absence or presence of parentheses makes it hard to find if the code is actually calling a function or just reusing a value somewhere. So I'm trying to generate the neko files for those .nml and encounter compilation errors :
nekoc -v -p Ast.nml
Ast.nml(76): Unexpected ,
Some help would be appreciated.
> -----Original Message-----
> From: ncannasse at motion-twin.com
> Sent: Thu, 27 Oct 2011 21:21:09 +0200
> To: neko at lists.motion-twin.com
> Subject: Re: [Neko] Compile , load and unload modules
> Le 27/10/2011 20:56, johann Sorel a écrit :
>> Good Evening,
>> I'm starting to like this nekovm syntaxe, much better than parrot pir
>> and winxed. :)
>> I am searching a bit more informations on compilation and loading.
>> What I am trying to achive is some kind of module manager (not neko
>> modules but higher level more like java .jar archives).
>> So I have a .neko or .nxml file and would like to compile it to a .n
>> .(from my application, which is also written in neko). something like
>> calling 'nekoc' but within neko ?
>> When .n file is done, I would like to know how to load it (from a random
>> path) and how to unload it if that's possible ?
> You'll have to compile the nekoc sources, then load the nekoc modules
> (except neko/Main) in order to perform that.
> Look at how nekoml translate to neko and check src/neko/Main.nml to see
> what api you need to call.
> Neko : One VM to run them all
TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if5
Capture screenshots, upload images, edit and send them to your friends
through IMs, post on Twitter®, Facebook®, MySpace™, LinkedIn® – FAST!
More information about the Neko