/Compiler-Project

Project for the Compiler Construction Course at BITS Pilani

Primary LanguageC

Compiler

This is a toy compiler written in C for course CSF363 at BITS Pilani

Known Issues: Crashes with GCC > 6 (ships with Ubuntu 16.04)

Tested with GCC 6 and below. It works perfectly for them! The compiler follows the language given in language/grammar.txt and language/Language Specifications.pdf.

Running Instructions

$ make #compile the compiler
$ ./build/pcc testcases/test1.txt # executes the code on testfile test1.txt

Testcases

Find the testcases: testcases/