Re: Infinite look ahead required by C++?

Adrian Thurston <thurston@complang.org>
Mon, 08 Feb 2010 20:51:38 -0500

          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)
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)
[7 later articles]
| List of all articles for this month |
From: Adrian Thurston <thurston@complang.org>
Newsgroups: comp.compilers
Date: Mon, 08 Feb 2010 20:51:38 -0500
Organization: Compilers Central
References: 10-02-024
Keywords: C++, parse
Posted-Date: 10 Feb 2010 11:03:52 EST

Hi, I covered some of the difficulties in this paper:


http://www.complang.org/thurston/thurston_CASCON_06_btlr.pdf


-Adrian


ng2010 wrote:
> 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.