I made the sources for a simple test (the infamous Hello World): Hello. Open a prompt, cd to the directory where your ".l" and ".y" are, and compile them with: If the figure is not in good resolution, you can see a step-by-step here. The semantic value of the token (if it has one) is stored into the global variable yylval, which is where the Bison parser will look for it. To do that, copy this: C:\Dev-Cpp\bin C:\GnuWin32\bin and append it to the end of the PATH variable, defined in the place show by this figure: Do not install it in the default (C:\Program Files (x86)\GnuWin32) because bison has problems with spaces in directory names, not to say parenthesis.Īlso, consider installing Dev-CPP in the default directory ( C:\Dev-Cpp)Īfter that, set the PATH variable to include the bin directories of gcc (in C:\Dev-Cpp\bin) and flex\bison (in C:\GnuWin32\bin). As for today (, updated ) you will need the lastest versions of:Īfter that, do a full install in a directory of your preference without spaces in the name.
0 Comments
Leave a Reply. |