This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Parser
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 24 Jun 2002 08:48:03 -0700
- Subject: Re: C++ Parser
--On Sunday, June 23, 2002 10:31:58 PM -0400 "Kaveh R. Ghazi"
<ghazi@caip.rutgers.edu> wrote:
> Mark Mitchell wrote:
>
> CodeSourcery is now once again going to be working on the new C++
> parser, with the objective of getting it into GCC 3.3.
Just curious, did you at any point post a summary of the improvements
this work is intended to provide us?
I'm not sure.
The principal improvement will be that we will (hopefully) improve
correctness. There are certain areas of the C++ language that YACC
is simply incapable of handling easily.
As a side benefit, the code in the C++ front end will become simpler,
even in areas outside the parser. There is lots of code whose sole
purpose is to recover from things that the parser cannot get right.
Down the road, there are other potential improvements, including better
error-recovery and possibly improved compile-times. Those, however,
are not objectives of the current effort -- although we will be making
measurements and trying hard to make sure that the new parser doesn't
make the compiler slower.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com