Skip to content

This is a simple compiler for cool (classroom object-oriented language).

Notifications You must be signed in to change notification settings

liyu10000/cool-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cool-compiler

This is a simple compiler for cool (classroom object-oriented language).

Please refer to the course website for more information. Stanford CS143 Compilers: http://web.stanford.edu/class/cs143/

PA1: a small program written in COOL to handle arith operations, stack machine.

PA2: lexer (string of characters --> string of tokens)

PA3: parser (string of tokens --> abstract syntax tree)

PA4: semant (AST --> annotated AST)

PA5: cgen (annotated AST --> MIPS assembly code)

About

This is a simple compiler for cool (classroom object-oriented language).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published