Skip to content

A compiler for the Natrix language, the final project of the Language Processing course at the University of Beira Interior (UBI).

License

Notifications You must be signed in to change notification settings

dario-santos/NatrixCompilerInterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A compiler for the Natrix language, the final project of the Language Processing course at the University of Beira Interior (UBI).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages