First, I tried to build the docs using "make doc" and got the following:

$ make doc
(cd src; LD_LIBRARY_PATH=../bin: NEKOPATH=../boot:../bin ../bin/neko
nekoc tools/makedoc.neko)
(cd src; LD_LIBRARY_PATH=../bin: NEKOPATH=../boot:../bin ../bin/neko
tools/makedoc)
nekoc -o ../www/libs -doc ../vm/builtins.c
Called from neko/Main.nml line 128
Called from core/Args.nml line 55
Called from neko/Main.nml line 92
Called from core/IO.nml line 100
Exception : (file_open, ../www/libs/builtins.html)
Called from tools/makedoc.neko line 37
Uncaught exception - Error 65280 : aborted
make: *** [doc] Error 1

This is either because you don't have a directory neko/www/libs created or you don't have the good rights to write to it.

make doc will generate the docs which are used on neko website, nothing morre.

Secondly, I made a file called Syntax.nml (for my AST) and a Main.nml.
Compiling Syntax.nml worked fine but when I tried to compile Main.nml
which looks like this:

open Syntax

print (show (App (Lambda "x" (Var "x")) (Int 1))) + "\n"

I got the following:

$ nekoml Syntax.nml
$ nekoml Main.nml
Main.nml(1): Unknown identifier open

Maybe because you forgot a ';' :

open Syntax;

print (....)

Nicolas

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

Reply via email to