Hi,
I'm using (trying.. to use) Visual C++ 6.0 to compile
a bison-generated parser (the x.tab.c file). However, the bison program I'm using generates these .c files with code
something along the lines of the following:
The backslashes cause vc++ (a command-line compile, btw) to choke hard... a slew of "unrecognized character escape sequence" errors are generated. I would certainly just change the backslashes to either "\\" or "/" (which should and probably would work), but certain generated variables I don't have easy access to prevent this from being a solution. I need to - somehow - tell vc++ to permit backslashes in the code. Is there a way to do this?
Any help would be very much appreciated,
Thanks,
dora
p.s. - is anyone aware of flex/bison binaries available for download that are compatible with vc++?
I'm using (trying.. to use) Visual C++ 6.0 to compile
a bison-generated parser (the x.tab.c file). However, the bison program I'm using generates these .c files with code
something along the lines of the following:
Code:
#line 1 "C:\my\bison\project\home\bison_project.y"
The backslashes cause vc++ (a command-line compile, btw) to choke hard... a slew of "unrecognized character escape sequence" errors are generated. I would certainly just change the backslashes to either "\\" or "/" (which should and probably would work), but certain generated variables I don't have easy access to prevent this from being a solution. I need to - somehow - tell vc++ to permit backslashes in the code. Is there a way to do this?
Any help would be very much appreciated,
Thanks,
dora
p.s. - is anyone aware of flex/bison binaries available for download that are compatible with vc++?