Are you struggling while switching from Windows to Linux just for the compilation using lex and yacc?

Use flex and bison instead.

Steps to install Flex

  1. Download CodeBlocks-minGW setup from here and install it.
  2. Download Flex setup program from here and install it.
  3. After successfully installation go to CodeBlocks -> minGW -> bin and copy the address of rhe bin. Then go to environment variables->system variables->path->edit->new and paste the bin address here.
  4. Then go to C ->Program Files -> GnuWin32-> bin and again copy the address of the bin. Then go to environment variables->system variables->path->edit->new and paste it here.
  5. Make…

Simran

Computer Science Student | BIT Mesra

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store