/Compiler

A compiler that compiles a C program

Primary LanguageC

Compiler

This repository contains the code of a compiler I have designed for the academic course Formal Language and Compilers. The compiler takes a C program as input and compiles it.

Functionalities

  1. Removes comments and new lines
  2. Removes extra spaces
  3. Seperates lexims and tokenizes
  4. Generates symbol table
  5. Assigns line numbers
  6. Detects errors