Related articles |
---|
Writing a compiler compiler vladimir.d.lushnikov@gmail.com (Vladimir Lushnikov) (2006-04-17) |
Re: Writing a compiler compiler haberg@math.su.se (2006-04-17) |
Re: Writing a compiler compiler rsc@swtch.com (Russ Cox) (2006-04-17) |
From: | haberg@math.su.se (Hans Aberg) |
Newsgroups: | comp.compilers |
Date: | 17 Apr 2006 10:49:23 -0400 |
Organization: | Mathematics |
References: | 06-04-105 |
Keywords: | parse, C++ |
Posted-Date: | 17 Apr 2006 10:49:23 EDT |
John Levine wrote:
> As to why an LR parser can't parse Python or C++, LR parsers only
> handle a subset of BNF. In particular they can't handle the
> ambiguity of C++ declarations.
There appears to be techniques around this for C++, getting even down to
LALR(1):
http://www.parashift.com/c++-faq-lite/compiler-dependencies.html#faq-38.11
--
Hans Aberg
Return to the
comp.compilers page.
Search the
comp.compilers archives again.