Home > Archive > Unix Programming > June 2007 > yacc question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| neena.usenet@gmail.com 2007-06-26, 10:06 pm |
| I have a gui that reads in a file using C++/yacc. If the file has a
parsing error, yacc throws the error to my program and I report it.
The problem is at that point, I would like to try to open a different
file, one that has no syntax errors. When I try to open this second
file, yacc throws me another error which I believe is leftover from
parsing the first file.
How do I clear the yacc "error stack"?
I posted this question to comp.lang.c++ but was directed here.
Thanks!
| |
|
| On Jun 26, 4:14 pm, neena.use...@gmail.com wrote:
> I have a gui that reads in a file using C++/yacc. If the file has a
> parsing error, yacc throws the error to my program and I report it.
> ...
> How do I clear the yacc "error stack"?
Have you checked TFM, http://www.gnu.org/software/bison/m...-Error-Recovery
|
|
|
|
|