[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with error recovery
From: |
Vitaliy Ziskin |
Subject: |
problem with error recovery |
Date: |
Fri, 15 Mar 2002 10:34:51 -0500 |
Hello everyone, I have the following problem with the error recovery in
my bison program:
The code is
stmts: /* empty */
| stmts stmt
;
stmt: name
| par
| cycle
| set
| setfi
| setrf
| do
| EOL { if(yyin == stdin) printf("ABS>");}
| error '\n' { yyerrok; }
;
The error is handled successfuly. However, it seems that after the error
is handled the parser gets out of the stmts recursion. Can someone
suggest a fix to this problem.
Cheers, Vitaliy
--
=====================================================================
Vitaliy Ziskin Tel: (617)253-9209
MIT 26-547 http://www.lns.mit.edu/people/vziskin/
77 Massachusetts Ave
Cambridge, Ma
02139
======================================================================
"For long you live and high you fly
And smiles you'll give and tears you'll cry
And all you touch and all you see
Is all your life will ever be"--Pink Floyd
- problem with error recovery,
Vitaliy Ziskin <=