This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++, libstdc++-v3 and, well, error messages
- To: dewar at gnat dot com, jbuck at racerx dot synopsys dot com
- Subject: Re: C++, libstdc++-v3 and, well, error messages
- From: dewar at gnat dot com (Robert Dewar)
- Date: Sun, 19 Nov 2000 01:25:16 -0500 (EST)
- Cc: Gabriel dot Dos_Reis at sophia dot inria dot fr, gcc at gcc dot gnu dot org,pfeifer at dbai dot tuwien dot ac dot at
<<For languages that are LALR(1), I fully agree. C++ is not such a
language. Parsing C++ with a bison parser requires all kinds of
ugly hacks (g++ currently does it by an extra pass that sits between
the lexer and the parser, the purpose of which is to do the needed
extra lookahead).
>>
First of all LALR is too strict a requirement these days for parser
generators. Second, it is definitely not such a difficult task to
construct an acceptable grammar. Remember that recursive descent
is LL1 which is weaker than LRK!