Berkeley yacc reports syntax-errors on legal input with grammars that not explicitely use declared tokens in rules. For details look at the bugreport sent to www.freebsd.org under pr# 20172 ( http://www.freebsd.org/cgi/query-pr.cgi?pr=20172 ) Note that FreeBsd's current CVS version (and FreeBSD 4.0 distro) of byacc is updated and has several other things fixed w.r.t. RedHat's distro (notably some extra compatibility defines for bison interoperability). However, the submitted bug remains I am told. Greetings Bertho
I've upgraded to the version in current FreeBSD CVS in the 1.9-17 package.
Erhm, I wrote that the bug remains in the current *BSD cvs tree. They only fixed the defines YYEMPTY, YYLEX and they've fixed some compiler warnings. However, they dod *not* change the code... Therefore, the bug remains.