This repository houses the assignments submitted by me as part of the university course of CS335: Compiler Design at IIT Kanpur. The task of each assignment was as follows:
- Assignment 1: The assignment was based on lexical analysis and required the usage of Flex to scan codes in a toy language and Fortran and report stats of lexemes present in the input.
10/100 marks deducted in private cases. They all emerged from incorrect detection of comments in Fortran. - Assignment 2: The assignment was based on the underlying theory of parsers as well as to construct a parser of our own for the given language specification.
No marks were deducted. - Assignment 3: This was a theoretical assignment based on SDDs (Syntax-Directed Definitions) and IR (intermediate representation).
No marks were deducted.