help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How can I check which rule I am in when an error occurs?


From: Xinan Tang
Subject: RE: How can I check which rule I am in when an error occurs?
Date: Fri, 14 Mar 2003 10:51:29 -0800

Hi Nupur,

  I think you need also to set variable yydebug to 1, such as adding
this piece of code: yydebug = 1;


Xinan Tang
Senior MTS
Xambala Inc
2025 Gateway Place, Suite 130
San Jose, CA 95110
Ph # (408)-436-2208   
_________________________________________________

-----Original Message-----
From: Nupur Bhattacharyya [mailto:address@hidden 
Sent: Friday, March 14, 2003 10:42 AM
To: address@hidden
Subject: How can I check which rule I am in when an error occurs?

I am using bison-1.28. Trying to detect which rule it is trying to
match when I get an unexpected end of file. Is there a way to 
find out? I have YYDEBUG on and YYERROR_VERBOSE on but the error
string in yyerror does not say more than parse error.

thanks
-- 
Nupur B. Andrews                 408-327-7326 
Tensilica Inc.                   address@hidden


_______________________________________________
address@hidden http://mail.gnu.org/mailman/listinfo/help-bison




reply via email to

[Prev in Thread] Current Thread [Next in Thread]