This is the mail archive of the
mailing list for the GCC project.
Re: gcc compile-time performance
- From: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, gdr at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org, neil at daikokuya dot demon dot co dot uk, robertlipe at usa dot net
- Date: Sat, 18 May 2002 09:16:40 -0400 (EDT)
- Subject: Re: gcc compile-time performance
> Parsing C/C++ require semantic actions, so some semantic analysis is
> inherently part of parsing C/C++.
No, that's certainly incorrect, it is perfectly possible to create a
context free grammar that represents a superset of C++ in the conventional
manner. Yes, there may be a couple of cases where it is worth a kludge to
get the tree in more useful shape (e.g. to distinguish (type)-(expr) from
(expr)-(expr)), but even that is not necessary.