alpaca

Created: 2012-03-25 21:51
Updated: 2015-12-31 14:11

README.md

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more