Compiler Construction Lab Manual / ECHO LEX Program

Program Name

Write a Compiler Construction Program for ECHO LEX Program.
Theory
ECHO LEX Program using to print statements.
Program Code


Saving: vi ECHO.l

Compiling and Running
lex echo.l
cc lex.yy.c
./a.out
Input
welcome to MJCET

Output
welcome to MJCET


Home     Back