Friedrich Weber a écrit :
Hi,

I am currently playing with nxml, but having some problems:
I have a file named 'test.neko' containing the following (from the docs on nxml):
---
<nxml>
<o v="=">
   <v v="fib"/>
   <function v="n">
       <if>
            <o v="<="><v v="n"/><i v="1"/></o>
            <i v="1"/>
            <o v="+">
                <c><v v="fib"/><o v="-"><v v="n"/><i v="1"/></o></c>
                <c><v v="fib"/><o v="-"><v v="n"/><i v="2"/></o></c>
            </o>
       </if>
   </function>
</o>
</nxml>
---
(without a newline at the end, otherwise it isn't recognized as nxml)

`nekoc test.neko` runs without problems and creates a `test.n` file, but `neko test` prints: "Uncaught exception - load.c(393) : Invalid module : test". Other neko scripts are working. Maybe you could give me a hint how to fix that (using neko cvs, but it didn't work in neko 1.8.0 either)?

Right, there seems to be an issue when there is no file/line informations. Simply add a p="test.neko:1" attribute to your "o" node.

Best,
Nicolas



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

Reply via email to