Re: Compiler Compiler Compiler

rog@vitanuova.com (Roger Peppé)
31 Mar 2001 02:31:57 -0500

          From comp.compilers

Related articles
[4 earlier articles]
Re: compiler compiler compiler Dr_Feriozi@prodigy.net (2001-03-26)
Re: Compiler Compiler Compiler kszabo@nortelnetworks.com (Kevin Szabo) (2001-03-27)
Re: Compiler Compiler Compiler Trevor.Jenkins@suneidesis.com (Trevor Jenkins) (2001-03-27)
Re: Compiler Compiler Compiler cfc@world.std.com (Chris F Clark) (2001-03-27)
Re: Compiler Compiler Compiler i.dittmer@fh-osnabrueck.de (Ingo Dittmer) (2001-03-27)
Re: Compiler Compiler Compiler iank@idiom.com (2001-03-27)
Re: Compiler Compiler Compiler rog@vitanuova.com (2001-03-31)
Re: Compiler Compiler Compiler blume@research.bell-labs.com (Matthias Blume) (2001-03-31)
Re: compiler compiler compiler toon@moene.indiv.nluug.nl (Toon Moene) (2001-03-31)
Re: Compiler Compiler Compiler joachim_d@gmx.de (Joachim Durchholz) (2001-04-04)
Re: compiler compiler compiler dr_feriozi@prodigy.net (2001-04-04)
Re: Compiler Compiler Compiler idbaxter@semdesigns.com (Ira D. Baxter) (2001-04-10)
Re: Compiler Compiler Compiler cfc@world.std.com (Chris F Clark) (2001-04-10)
[1 later articles]
| List of all articles for this month |

From: rog@vitanuova.com (Roger Peppé)
Newsgroups: comp.compilers
Date: 31 Mar 2001 02:31:57 -0500
Organization: Compilers Central
References: 01-03-095 01-03-122 01-03-149
Keywords: yacc
Posted-Date: 31 Mar 2001 02:31:57 EST

> Another reason not to use YACC is the stupid $1, $2,
> $3,... notation.


The 10th Edition/Plan 9/Inferno Yacc Allows One To Write Rules As:


rule: a TOK c { $$ = mknode($TOK, $a, $c); }


Which, Although Probably Not As General As The ANTLR naming scheme,
does mostly eliminate one of the most annoying of the $1, $2...
problems: namely that adding new tokens into the production requires
renaming all the token references.


I'M Vaguely Surprised This Hasn't made it into other yacc versions.


    cheers,
        rog.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.