Hi everybody,YACC usually builds y.tab.c from a skeleton file that contain the yyparse if I am not mistaken, I have seen bugs in several versions of the skeleton files. I have tried it with C, never worked with C++ in YACC.
I'm trying to code a simple compiler for a simple language I'm designing, I've debugged anything I could from g++ "useful" compile errors, but now after I have screened out all those errors, i get this strange ouput from g++:
g++ -o simplang main.cc y.tab.c lang_funcs.cpp
/usr/ccs/bin/yaccpar: In function `int yyparse()':
/usr/ccs/bin/yaccpar:274: parse error before `(' token
/usr/ccs/bin/yaccpar:316: parse error before `(' token
does anyone know where the hack those error come out from!? I've scanned my grammer file etc, and everything seems ok,
any help on this will be highly welcomed !
Sivan
You can also try Bison, it reads the same grammer files but work a little different.
It's been two years since I last worked with these tools so I don't realy remember.
-- Ori Idan
-------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED]
