

You will have to add ' C:GNUWin32bin C:CodeBlocksbin' to the end of your PATHĦ) Open up a CMD prompt and type in the following Incase you don't know how to go about this, see how to do it on Windows XP ,Windows Vista and Windows 7. I use ' C:GNUWin32' for FLEX and BISON and ' C:CodeBlocks' for Code::Blocksĥ) Now add the BIN folders of both folders into your PATH variable. It's recommended to install in folders WITHOUT spaces in their names. I recommend DevCPP or Code::BlocksĤ) Install all 3. Here's how to set up FLEX and BISON on Windows systemsģ) Download a C/C++ Compiler ( If you say TurboC, I'll reach out through the monitor and thump your head). Sticking with the ' When in doubt, try another hole' philosophy, I just googled around a little and came up with a much easier solution. NOTE: When people say they use LEX and YACC, almost always, what they mean is FLEX (Which is an alternative to Lex) and BISON (which is part of the GNU project) / BYACC respectively. In many cases, people actually downloaded entire distro DVDs just for LEX/YACC! Since LEX and YACC are both originally developed for the *nix OSes ( read: Linux), there was a sudden rush of classmates downloading linux distros (Fedora being the default choice as it's used on lab systems). We've just started compiler design as part of the Language Translators subject at college and a practical aspect of it involves using LEX and YACC for Grammar Lexical Analysis and Parser Generation.
