EXPERIMENT 2
To implement a lexical analyzer using the LEX tool for recognizing and classifying identifiers, numbers, and operators from the given input.

========================================================================

Lex Program
-----------
%{
    #include <stdio.h>
    %}
%%
[a-zA-Z][a-zA-Z0-9]*   { printf("IDENTIFIER: %s\n", yytext); }
[0-9]+                 { printf("NUMBER: %s\n", yytext); }
[+\-*/=]               { printf("OPERATOR: %s\n", yytext); }
.                      { }
%%
int main()
{
    yylex();
    return 0;
}
int yywrap()
{
    return 1;
}

Example Input
-------------
for(int i=0;i<n;i++){ sum+=i;}
