This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]