Infinite look ahead required by C++?

"ng2010" <ng2010@att.invalid>
Fri, 5 Feb 2010 22:27:54 -0600

          From comp.compilers

Related articles
Infinite look ahead required by C++? ng2010@att.invalid (ng2010) (2010-02-05)
Re: Infinite look ahead required by C++? cfc@shell01.TheWorld.com (Chris F Clark) (2010-02-06)
Re: Infinite look ahead required by C++? idbaxter@semdesigns.com (Ira Baxter) (2010-02-06)
Re: Infinite look ahead required by C++? thurston@complang.org (Adrian Thurston) (2010-02-08)
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)
[38 later articles]
| List of all articles for this month |

From: "ng2010" <ng2010@att.invalid>
Newsgroups: comp.compilers
Date: Fri, 5 Feb 2010 22:27:54 -0600
Organization: A noiseless patient Spider
Keywords: C++, parse, question
Posted-Date: 06 Feb 2010 09:58:38 EST

What elements of C++ make it so hard to parse? Is it a weakness of
compiler designs rather than a weakness of the language design? I've read
somewhere that the language requires potentially infinite look ahead.
Why? And how do compilers handle it?
[It's ambiguous syntax. Others can doubtless fill in the details. -John]



Post a followup to this message

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