Flex and Bison
-
I have been writing a parser using bison and flex. I have put my .l and .y files thorough flex and bison repsectively. Now when I try and compile the resulting .c and .h files I get an error saying "unexpected end of file searching for precompiled header directive." It doesn't say which header it is looking for. I am using Visual C++ ver 6 :confused: X|
-
I have been writing a parser using bison and flex. I have put my .l and .y files thorough flex and bison repsectively. Now when I try and compile the resulting .c and .h files I get an error saying "unexpected end of file searching for precompiled header directive." It doesn't say which header it is looking for. I am using Visual C++ ver 6 :confused: X|
First, this should have been posted in the C++ forum... Just #include "StdAfx.h" in the top of every .cpp file... - Anders Money talks, but all mine ever says is "Goodbye!"
-
First, this should have been posted in the C++ forum... Just #include "StdAfx.h" in the top of every .cpp file... - Anders Money talks, but all mine ever says is "Goodbye!"
Assuming you are using VC++ go to the Project settings and select the C/C++ tab. From the Category drop-down box select Precompiled Headers. For the generated .c files select 'Not using precompiled headers'. Grtx, Berry
-
I have been writing a parser using bison and flex. I have put my .l and .y files thorough flex and bison repsectively. Now when I try and compile the resulting .c and .h files I get an error saying "unexpected end of file searching for precompiled header directive." It doesn't say which header it is looking for. I am using Visual C++ ver 6 :confused: X|
Hi, this is not an answer to your question, but i thought it might interest someone: I stopped using flex an bison when i discovered a tool called "COCOR". It exists for several languages and is freeware. Even src is included. It is much easier to use and produces readable code for scanners and parsers. (No more yy_ variables and functions :-D ) Look at http://cs.ru.ac.za/homes/cspt/cocor.htm watch out for the c++ version. Maybe someone likes this tool.