Article View: comp.sources.bugs
Article #858Re: yacc misfeature (was: Help needed for Logo on Unix)
From: Ken Yap
Date: Sat, 18 Jul 1987 05:26
Date: Sat, 18 Jul 1987 05:26
16 lines
1056 bytes
1056 bytes
Speaking of yacc bugs, how come nobody has complained about this one? In the parser skeleton there are a few lines like this #ifndef YYSTYPE #define YYSTYPE int #endif When the %union feature is used, this creates a union typedef for YYSTYPE. Unfortunately, a typedef is not a #define and the default type isn't overidden. In the end I sent y.tab.c through a sed script to remove the #define. Maybe people don't use %union that much? It really is nifty. Ken
Technical Details
Message-ID:
<632@sol.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!rochester!kenReferences:
<1740@encore.UUCP> <330@rabbit1.UUCP> <1649@sfsup.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!rochester!ken From: ken@rochester.arpa (Ken Yap) Newsgroups: comp.sources.bugs Subject: Re: yacc misfeature (was: Help needed for Logo on Unix) Message-ID: <632@sol.ARPA> Date: Sat, 18-Jul-87 01:26:33 EDT Article-I.D.: sol.632 Posted: Sat Jul 18 01:26:33 1987 Date-Received: Sat, 18-Jul-87 18:59:17 EDT References: <1740@encore.UUCP> <330@rabbit1.UUCP> <1649@sfsup.UUCP> Reply-To: ken@rochester.UUCP (Ken Yap) Organization: U of Rochester, CS Dept, Rochester, NY Lines: 16