Creativity, Innovation... Failure



Visual Studio, Bison and Flex : Apocalypse.

If you need to setup Bison and Flex in order to build a freshly created Language Service Package then do the following :

1.       You must install Flex 2.5.4a and at least Bison 2.4.1. Install to a path that contains no spaces. http://gnuwin32.sourceforge.net/packages.html

2.       Modify parser.y project properties in Visual Studio

a.       Flex
"c:\flex\bin\Flex.exe" -o$(InputName).cpp "$(InputPath)"

b.      Bison

set INIT=C:\bison\bin

Set BISON_SIMPLE=C:\bison\bin\bison.simple

set M4=C:\bison\bin\M4.exe

"C:\bison\bin\bison.exe" -v -o$(InputName).cpp -d "$(InputPath)"

3.       Then you must install bison.simple where you installed Bison and in the bin folder. http://userpages.monmouth.com/~wstreett/lex-yacc/lex-yacc.html

4.       Modify service.cpp & lexer.lex by changing parser.cpp.h to parser.hpp.

5.       Remove /WX flag from language service package project.

6.   Rename #include "parser.cpp.h"  in lexer.lex to parser.hpp.

 


Tags: ,
Categories:
Actions: E-mail | Permalink | Comments (714) | Comment RSSRSS comment feed