On 12/19/2009 10:41 PM, Joel E. Denny wrote:
a. YYFAIL appears in yacc.c but is not documented for yacc.c. Comments in
yacc.c describe it as follows:
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
Once GCC version 2 has supplanted version 1, this can go. */
In other words, we've been planning to get rid of it for a long while.
(However, is there any evidence that users actually use it? Do we need to
poll them or warn them somehow?)
No problems for me for lalr1.java; for yacc.c however we have some uses:
http://www.google.com/codesearch?hl=en&lr=&q=YYFAIL%3B&sbtn=Search
Some of them are my own GNU Smalltalk (no problem, I now switched to
recursive descent) and of course GCC 1. However there are still about
5-6 other users. I don't think it's reasonably possible for YYFAIL to
die anytime soon.
Paolo