Lab Work for ICS 4211 : Compiler Construction

This repository contains the weekly lab assignments given for this unit.

TOC

Lab One

Activity : Implement a simple lexical analyzer (Preferred language : C/C++).
Bonus : Design an automatic lexical analyzer using Flex (3 points). To-do


The lexical analyzer (lex-analyzer.cpp) tokenizes the samplecode.txt
The editor used to write this code is Visual Studio Code. You will find a generated executable file that you can run (lex-analyzer.exe). Alternatively, if you want to run the code, make sure you download a c++ compiler. Vscode will prompt you to set your compiler path and press the run button.