Tiger In AG
The Tiger in AG compiler is a parser and type checker for Andrew Appel's Tiger language. It has been developed as an example of the use of
the Attribute Grammar system
and the UPC: Utrecht Parser Combinators
Download and Installation
The source code of the Tiger compiler can be found in the
The compile the Tiger compiler you need the following:
The Tiger compiler's lexical analyser was made using Alex
a scanner generator for Haskell. The generated scanner is included in the sources, so you only need Alex in case you want to make changes to the lexical analyser.
The sources of the Tiger compiler, the uust libraries, and the Attribute Grammar system are all part of the uust package.
You can get the uust package using anonymous checkout:
cvs -d:pserver:firstname.lastname@example.org:/data/cvs-rep login
cvs -d:pserver:email@example.com:/data/cvs-rep checkout uust
Compiling the Tiger compiler
After installing the uust package, descend into the directory
. To configure, simply edit the variables in the beginning of the
, and type
at the command line.
This results is an executable named
. To test your Tiger compiler run it on the examples in the
I hope this software is useful to you. If you have any comments or questions do not hesitate to contact Arthur Baars