Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 948 Bytes

README.md

File metadata and controls

48 lines (29 loc) · 948 Bytes

cs4013 Build Status

Fourth compilers project for CS4013 at the University of Tulsa

Introduction

This project is the front-end to a compiler for a subset of Pascal. Steps performed are:

  1. Lexical analysis

  2. Syntax analysis: recursive descent parsing

  3. Semantic analysis: type/scope checking and declarations processing

  4. Memory address computation

Requirements

  • make
  • gcc
  • Check (only for testing)

Usage

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

Testing is provided with Check. Make sure it is installed before running tests.

make check

License

Released under MIT license.