Skip to content

nickgian/alpaca

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Llama Compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 72.1%
  • Assembly 17.3%
  • TeX 9.6%
  • Shell 1.0%