This repository contains the LEX files used perfom specific tasks for lexical analysis.
Linux environment is required to run these programs. To run these codes, install LEX on the Ubuntu system.
Steps to install LEX tool:
- Open the terminal
- Run the command: sudo apt-get install flex
- Enter the root user password
Note: root access is required to install Lex Tool.
Compiling and executing the codes:
- Open terminal
- Open the directory containing the .l file
- Run command: lex filename.l
- Run command: cc lex.yy.c
- Run command: ./a.out