Lexical analysis and parsing using Flex and Yacc
- Lex File - parse.l
- YACC File - parse.y
Main program reads input from file specified by the user.
Run the program by following commands given below and then enter the location of the file that you wish to parse.
Eg: ./examples/input.txt
1. yacc parse.y -d
2. lex parse.l
3. gcc parse.tab.c
4. a.exe