resetting after 'parse error' in yacc(bison) generated parser ?!

Holger =?iso-8859-1?Q?L=E4be?= <laebe@geomapping.de>
12 Aug 1999 03:08:50 -0400

          From comp.compilers

Related articles
resetting after 'parse error' in yacc(bison) generated parser ?! laebe@geomapping.de (Holger =?iso-8859-1?Q?L=E4be?=) (1999-08-12)
| List of all articles for this month |
From: Holger =?iso-8859-1?Q?L=E4be?= <laebe@geomapping.de>
Newsgroups: comp.compilers
Date: 12 Aug 1999 03:08:50 -0400
Organization: Customer of SpaceNet GmbH
Keywords: lex, parse, comment

Hi,
i'm using a bison based parser to read a pascal like description
language. The whole parser is inside a DLL, so it can be called from
different applications. If the parser recognizes an error, it returns it
perfect. But when i call the function again with a new (corrected) file,
it right there at the last error.


Does anyone knows a way to 'reset' the parser state ?


Any ideas are welcome !


Holger
[Yacc parsers reset each time you call yyparse(). You probably need
to restart your lexer. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.