Compiler for a subset of Pascal as described in Compilers: Principles, Techniques, and Tools 1st Edition - Aho, Sethi, Ullman, appendix A. The grammar has been modified to support nested subprogram definitions.
- a linux environment
- clang
- GNU Make
make clean
make
By default, the compiler will read and analyze the data/program.pas
source file:
./bin/pasc
A different source file may be specified on the command line:
./bin/pasc /path/to/source.pas
After execution, a listingfile
, symboltable
, and tokenfile
will be output to the project root directory.