Skip to content

xiw9/pcat-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

122 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcat-compiler

PCAT compiler is a college course project assigned in the course ''Compiler'' by Prof. Bo Yan, offered in Fudan University.

Students are required to implement an compiler of PCAT language, including Lexical, syntax, semantic analysis and IR generation.

Architecture

  • Lexical Analysis (Tokenizer)

  • Syntax Analysis

  • Semantic Analysis

  • IR Generation

Resources

We didn't receive enough information and supplimentary materials from TA, so we must search for it manually.

A similar course with project on PCAT was offered by Prof. Harry H.Porter in 2005. Although in Java without solution, its supplimentary materials as well as lectures closely linked to the PCAT compiler, still mean a lot to us.

Another course offered by Prof Fegras also contains PCAT compiler implementation as it course project. The lecture note provides good vision of knowledge required for this project, while instructions from projects explained some details on the implementation.

Students are required to implement an compiler of PCAT language, including Lexical, syntax, semantic analysis and IR generation.

Misc

The PCAT Language Specification

Syntax and Semantic Analysis

For Syntax Analysis, the lectures involved is SyntaxPart1, SyntaxPart2 and SyntaxPart3. For semantic analysis one may refer to SemanticsPart1 and SemanticsPart2.

Related Projects are Project 4, Project 5 and Project 6. One can also refer to AST Summary and PCAT Errors

IR Generation

Prof. Porter covered the SPARC architecture in 3 courses (Part 1, Part 2 and Part 3), then covered Code Generation(Part 1, Part 2, Part 3), Tolmach's AST and Parameter Passing.

Related Projects are Project 8, Project 9 and Project 10.

Also refer to Review of AST

Authors

Alan Tian (Tian Yingtao), Wandsea (Wang Xi), Edward Cheng (Cheng Munan), Jifan Chen

About

PCAT compiler, a college projec

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages