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.
-
Lexical Analysis (Tokenizer)
-
Syntax Analysis
-
Semantic Analysis
-
IR Generation
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.
The PCAT Language Specification
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
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
Alan Tian (Tian Yingtao), Wandsea (Wang Xi), Edward Cheng (Cheng Munan), Jifan Chen