Skip to content

Tiger compiler implemented in SML, with backend agnostic IR.

Notifications You must be signed in to change notification settings

chronologos/tiger-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tiger-compiler

Tiger compiler implemented in SML, with backend agnostic IR.

Project structure:

Each of the following folders represents the compiler at a certain stage. Code within each folder is self-contained.

Compiler Frontend

  1. Lexer -> Transforming tiger into tokens.
  2. Parser -> Transforming tokens into an abstract syntax tree (AST)
  3. TypeChecker -> Code that typechecks AST.
  4. IR_FA -> Transforming AST into Intermediate Representation + code that does Frame Analysis

Compiler Backend

  1. CA_IS -> Canonicalization and instruction selection code
  2. DA_LI -> Dataflow and Liveness Analysis and Register Allocation code
  3. FINAL -> Complete Compiler

About

Tiger compiler implemented in SML, with backend agnostic IR.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published