Re: Infinite look ahead required by C++?

Stephen Horne <sh006d3592@blueyonder.co.uk>
Sun, 14 Feb 2010 00:10:50 +0000

          From comp.compilers

Related articles
[4 earlier articles]
Re: Infinite look ahead required by C++? sh006d3592@blueyonder.co.uk (Stephen Horne) (2010-02-09)
Re: Infinite look ahead required by C++? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2010-02-10)
Re: Infinite look ahead required by C++? sh006d3592@blueyonder.co.uk (Stephen Horne) (2010-02-10)
Re: Infinite look ahead required by C++? cfc@shell01.TheWorld.com (Chris F Clark) (2010-02-10)
Re: Infinite look ahead required by C++? martin@gkc.org.uk (Martin Ward) (2010-02-11)
Re: Infinite look ahead required by C++? idbaxter@semdesigns.com (Ira Baxter) (2010-02-13)
Re: Infinite look ahead required by C++? sh006d3592@blueyonder.co.uk (Stephen Horne) (2010-02-14)
Re: Infinite look ahead required by C++? wclodius@los-alamos.net (2010-02-13)
Re: Infinite look ahead required by C++? krzikalla@gmx.de (Olaf Krzikalla) (2010-02-19)
Re: Infinite look ahead required by C++? ng2010@att.net (ng2010) (2010-02-23)
Re: Infinite look ahead required by C++? cfc@shell01.TheWorld.com (Chris F Clark) (2010-02-27)
Re: Infinite look ahead required by C++? bartc@freeuk.com (bartc) (2010-02-28)
Re: Infinite look ahead required by C++? torbenm@diku.dk (2010-03-02)
| List of all articles for this month |

From: Stephen Horne <sh006d3592@blueyonder.co.uk>
Newsgroups: comp.compilers
Date: Sun, 14 Feb 2010 00:10:50 +0000
Organization: virginmedia.com
References: 10-02-024 10-02-029 10-02-051
Keywords: C++, parse
Posted-Date: 13 Feb 2010 19:40:23 EST

On Thu, 11 Feb 2010 12:20:42 +0000, Martin Ward <martin@gkc.org.uk>
wrote:


>In this sense, C++ is not "hard to parse". (I can crack
>this nut easily using my Acme Steam-Powered Sledgehammer :-))


Easy in principle, maybe, but something can be "hard" simply because
of the quantity of rules and special cases you need to cope with. You
still have to account for every single rule in your grammar
specification.


>(3) It's hard for *human beings* to parse this language.


I agree, that is a big C++ issue, especially with templates -
essentially a kind of broken Haskell hacked onto C++ so that
metaprogramming is done with a completely different sublanguage than
that used for normal programming.



Post a followup to this message

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