Skip to content
/ alpaca Public
forked from Qthan/alpaca

Llama Compiler for compilers course

Notifications You must be signed in to change notification settings

zoep/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 by Caml, featuring:

  • Type Inference
  • Higher 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 for compilers course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 71.6%
  • Assembly 17.2%
  • TeX 9.6%
  • Batchfile 0.9%
  • Makefile 0.7%
  • Shell 0.0%