Click to See Complete Forum and Search --> : problems with bison


Rawr
October 25th, 2005, 03:12 PM
not sure if this is in the right forum or not. i'm having some problems compiling an output file from bison. it gives errors that don't match the line that they point to. for instance, i get this error:

dg_syntax.parser.c(239) : error C2059: syntax error : 'constant'

which points to this line:

short yyss;

can someone tell me what's going on here? i have a total of 17 errors that i can't match

SuperKoko
October 26th, 2005, 05:33 AM
Syntax errors may be due to a missing parenthesis or brace, or semicolon, and the compiler may parse the code up to something that it does not understand and where it says that there is a syntax error.
So, you should search for the few lines above the one pointed by the compiler. The real syntax error may be localized here (missing ';' or '}' or ')' probably).