Program Name
Write a Compiler Construction Program for Counting Identifiers LEX Program. |
Theory
Counting Identifiers LEX Program
|
Program Code
|
Saving: vi countingidentifiers.l
Compiling and Running
lex countingidentifiers.l
cc lex.yy.c
./a.out a.txt
|
Input
Create a text file a.txt and enter data.
Vi a.txt
Prasad created this file1234 a1234
Output
the no of identifierare:5
|