Parser file

2006-12-11 Thread DaveMord
Hi we implemented our yyparse in yyparse.c file. I want to know how to indicate to Bison to take this file as template. I tried : bison -d -l -o tcyacc.c TL1.yyparse.c My yac file is named: TL1.y and i saw somwhere to replace .y by the parser file name (yyparse.c in my case) But this doesn't wor

Re: Error handling

2006-12-08 Thread DaveMord
I'm sorry but I don't understant what you said. What is the genrated parser's dynamic stacK? Hans Aberg wrote: > > If you use Bison generated parser's dynamic stack, syntax errors are > all that remains. > >Hans Aberg > > > On 7 Dec 2006, at

Error handling

2006-12-07 Thread DaveMord
Hi, i'm new to yacc and Bison and i really need help. I have to change the yacc compiler to Bison compiler and i got some problems with the yyerror function. This function was implemented for the yacc compiler but it doesnt work with Bison. yyerror used YY_ALLOC_ERR, YY_STACK_OVF, YY_SYNTAX_ERR en