Fourth compilers project for CS4013 at the University of Tulsa
This project is the front-end to a compiler for a subset of Pascal. Steps performed are:
-
Lexical analysis
-
Syntax analysis: recursive descent parsing
-
Semantic analysis: type/scope checking and declarations processing
-
Memory address computation
- make
- gcc
- Check (only for testing)
Compile the program with make
.
make
Output from gcc will be in the bin
directory.
./bin/parser reserved_words_file source_file output_dir
Testing is provided with Check. Make sure it is installed before running tests.
make check
Released under MIT license.