Re: flex+bison and C++, second part (Solved)

2007-04-12 Thread Tamas Nagy
Hi! All problem solved by reading and applying: http://tldp.org/HOWTO/Lex-YACC-HOWTO-5.html Tamas > Hi! > > With no parser.c. Main() is in the .y file, the > following error occured: > > alfa.tab.cpp: In function `int yyparse()': > alfa.tab.cpp:1097: error: `yylex' undeclared (first > use thi

Re: flex+bison and C++, second part

2007-04-12 Thread Tamas Nagy
Hi! With no parser.c. Main() is in the .y file, the following error occured: alfa.tab.cpp: In function `int yyparse()': alfa.tab.cpp:1097: error: `yylex' undeclared (first use this function) alfa.tab.cpp:1097: error: (Each undeclared identifier is reported only once for each function it appear

Re: flex+bison and C++, second part

2007-04-12 Thread Tamas Nagy
Hi! I also have a parser.c file. (sourcehandler) Should i have to rewrite it to c++ or just link it? Because of this, which is in the .y file: vrml_filel_init(f, argv[1]); it cannot compile to c++. Even if #include "prog.tab.h" it cannot see the above function. I have the bottom files too: >

Re: Bison error

2007-04-12 Thread Hans Aberg
On 12 Apr 2007, at 15:54, Tamas Nagy wrote: When i run my parser on a VRML 2.0 file or the DIVE VRML 1.0 parser on a VRML 1.0 file, i get the following error, which is not too informative: redblue.wrl:5: Error: syntax error before 'å' How can i get these error messages more informative, for e

Bison error

2007-04-12 Thread Tamas Nagy
Hi! When i run my parser on a VRML 2.0 file or the DIVE VRML 1.0 parser on a VRML 1.0 file, i get the following error, which is not too informative: redblue.wrl:5: Error: syntax error before 'å' How can i get these error messages more informative, for example how to print the last good token?