Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 951 Bytes

README.md

File metadata and controls

42 lines (25 loc) · 951 Bytes

Natrix Compiler Interpreter

This is the compiler and interpreter of the Natrix language. (Link to the documentation bellow).

How to Use It

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

How to Test

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

Natrix Documentation

The full documentation of the Natrix language can be accessed bellow:

https://dario-santos.github.io/2020/01/12/natrixdoc.html