Compiler Design lab experiments using C, YACC and LEX tool.
Contents:
Ex1 - C program to implement lexical analyser for C code
Ex2 - Lex code to identify keywords, functions, special characters, identifiers, constants and comments in C code
Ex3 - Lex code to build a Symbol Table for C code
Ex4 - Lex and Yacc to implement a simple calculator with associativity and precedence
Ex5 - A simple syntax checker for C code using Lex and Yacc
Ex6 - Implementation of abstract syntax for arithmetic opeartions using Lex and Yacc
Ex7 - Type checking and type conversion for arithmetic expression using syntax directed translation in Yacc
Ex11 - Control and dataflow analysis