SCLP Based Compiler

Designing C inspired compiler incrementally along language features and phases of compilation

This was the course work of Implementation of Programming Languages Lab at IIT BOMBAY, in Spring 2021.

-> Created a C-like compiler from scratch using lex and yacc

-> Implemented the scanning, parsing, Abstract Syntax Tree (AST), Three Address Code (TAC) and Register Transfer Language (RTL) stages for input programs with visibility of output of each intermediate stage

-> Input programs had assignments, functions, complex expressions and control flow structures

-> Ensured that illegal tokens, syntax errors are semantic errors are efficiently reported

For a high level overview, read this.