CompilerDesign

Nitk Lab Project for Compiler Design Course CO351

Done by 15co243 - Harsh shah and 15co233 - Patel Harsh R

Lexical Analyzer


The folder named Lexical Analyzer contains implementation of a lexical analyzer for C language using 'lex'.
The lexical analyzer identifies the following tokens:-
1. Keywords
2. Identifiers
3. Constants (int,float)
4. Strings
5. Operators
6. Special Characters
The following errors are identified by the lexical analyzer:-
1. Unterminated Comment
2. Invalid characters (eg : $,@,etc)
3. Ill-formed identifiers (eg : 3abc)