Skip to content

zzsfornlp/tiger-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIGER Compiler

What is TIGER

A simple compiler for the simple language TIGER.

Although simple, it could compile from TIGER src code to runnable MIPS code (on SPIM simulator).

Tiger is a mini lanuage from the Tiger Book:

Andrew, W. Appel, and P. Jens. "Modern compiler implementation in Java." (2002).

How to run the compiler

The pre-compiled package could be find as lib/tiger.jar, simply run the following command will output the MIPS code.

java -cp lib/tiger.jar <src-file> -o <output-file>

For more information about running, please take a look at run.md.

To run the generated MIPS code, the Simulator SPIM could be used. (More info)

About

A simple compiler for tiger.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published