Pascal0 Compiler. Sekerinski, E. & Zingaro, D. Technical Report McMaster University, January, 2011.
Pascal0 Compiler [pdf]Paper  abstract   bibtex   1 download  
Pascal0 is a subset of the Pascal programming language, suited for teaching the principles of compiler construction. This report describes a one-pass recursive descent compiler for Pascal0. The compiler is written in Pascal and generates code for RISC, a register-based instruction set, and STACK, a stack-oriented instruction set. Interpreters for RISC and STACK are included; these allow the execution of the generated code to be traced. The presentation of the compiler exemplifies modularization and documentation principles. This document is written using the noweb literate programming tool. The Pascal source code is automatically extracted from this document.

Downloads: 1