My C Compiler

A compiler written using Flex and Bison for a subset of C language as part of coursework.

This project was done as a part of the coursework under CSE310: Compiler Sessional. The full pipeline of the project can be divided into four stages:

  • Implementation of Symbol Table
  • Building a Scanner for Lexical Analysis
  • Implementing a Parser for Syntax and Semantic Analysis
  • Intermediate Code Generation (8086 Assembly)

Codes and specifications are available on github at this link.