Re: Why context-free?

Robert A Duff <bobduff@shell01.TheWorld.com>
7 Oct 2005 21:51:05 -0400

          From comp.compilers

Related articles
Why context-free? nmm1@cus.cam.ac.uk (2005-10-06)
Re: Why context-free? cfc@shell01.TheWorld.com (Chris F Clark) (2005-10-07)
Re: Why context-free? torbenm@app-4.diku.dk (2005-10-07)
Re: Why context-free? rsc@swtch.com (Russ Cox) (2005-10-07)
Re: Why context-free? bobduff@shell01.TheWorld.com (Robert A Duff) (2005-10-07)
Re: Why context-free? nmm1@cus.cam.ac.uk (2005-10-08)
Re: Why context-free? vidyut.vidyut@gmail.com (2005-10-08)
Re: Why context-free? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-10-09)
Re: Why context-free? mpah@thegreen.co.uk (2005-10-09)
Re: Why context-free? nmm1@cus.cam.ac.uk (2005-10-09)
Re: Why context-free? rfigura@erbse.azagtoth.de (Robert Figura) (2005-10-10)
[30 later articles]
| List of all articles for this month |
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Newsgroups: comp.compilers
Date: 7 Oct 2005 21:51:05 -0400
Organization: The World Public Access UNIX, Brookline, MA
References: 05-10-053
Keywords: design, parse, comment
Posted-Date: 07 Oct 2005 21:51:05 EDT

nmm1@cus.cam.ac.uk (Nick Maclaren) writes:


> I have been thinking about a programming language, and have good
> reasons to abandon context-free grammars completely.


This portends a delicious language-design discussion, if our esteemed
moderator allows such (as opposed to pure compiler-specific
discussions). ;-)


I favor context-free grammars because I understand them, both as a user
of a language, and as a compiler writer.


Now, please tell us, why you "have good reasons to abandon" them
"completely". Tell us the good reasons. And the alternative.


> [The best argument I've heard is that to a first approximation, CFGs
> match languages that people can understand. Of course, since I write
> everything in perl these days, I suppose I don't believe that, either.
> -John]


Sorry, but I'm not impressed with Perl.


- Bob
[Your moderator is happy to have language design discussions insofar as
they relate to the way that compilers have to deal with the language.
As the FAQ says, once it degnerates into where the semicolon goes, it's
over.


Perl's syntax is gross, but it's the most productive language I've
ever used, partly because of its nice complete garbage collected type
system, partly because of the vast set of application libraries
available. -John]


Post a followup to this message

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