This is the compiler and interpreter of the Natrix language. (Link to the documentation bellow).
If you have downloaded the source code use the makefile that is in the folder ./Compiler.
make
This coomand will generate the natrix.exe
executable.
The program offers a set of options:
-parser-only: Executes only the lexer and parser. -print-ast : Print the abstract syntax tree of the given file. -interpt : Uses the interpreter instead of the compiler.
Using an option:
dune exec ./natrix.exe -interpt file.nx
This project contains a folder with a set of tests, the easiast way to test the compiler and interpreter is to use the entry test
in the makefile.
make
make test
The full documentation of the Natrix language can be accessed bellow: