You might have wondered why LEX and YACC programs will not work in LINUX even if have written your program correctly. Well, no need to worry. Just a simple 3-4 steps will successfully execute your programs.
Steps goes like this :---
- Go to terminal and enter the following command. sudo apt-get install build-essential
- Then type sudo apt-get install flex(For lex programs).
- Again type sudo apt-get install bison(For yacc programs).
If you carry out above process, you will be done with configuring FLEX and BISON. Now you will be able to execute your lex and yacc programs.
Thank you :)