Skip to content

Latest commit

 

History

History
56 lines (32 loc) · 1.28 KB

README.md

File metadata and controls

56 lines (32 loc) · 1.28 KB

The Alpaca Compiler for LLama

Compiler project for NTUA compilers course.

The language scpecification can be found here in greek.

Llama is a functional programing language, inspired from Caml, featuring:

  • Type Inference
  • High order functions
  • User defined data types
  • Imperative features: destructive arrays, mutable variables, while and for loops

Dependencies:

To compile:

$ make .depend
$ make

Alternatively, you can generate a native executable using ocamlopt:

$ make .depend
$ make Llama.opt

Optionaly, you can create the documentation files:

$ make doc

To run:

$ ./Llama file.lla
	or 
$ ./Llama.opt file.lla 

$ dosbox
$ ml.exe file.asm llama.lib

You can type

$ ./llama --help

to see the list of available options.

Have fun!!

IMAGE ALT TEXT HERE