yacc question

N

neena.usenet

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"?

If I am posting to the wrong group, please let me know.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Lex/Yacc and multiple input files 2
flex and yacc 1
FAQ 7.1 Can I get a BNF/yacc/RE for the Perl language? 0
Yacc non terminal Symbol 4
yacc 4
Lex / Yacc problem 1
a yacc problem, help! 1
YACC 2

Members online

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,734
Latest member
manin

Latest Threads

Top