New C++ Parser

Mark Mitchell mark@codesourcery.com
Sat Oct 21 14:03:00 GMT 2000


>>>>> "Per" == Per Bothner <per@bothner.com> writes:

    Per> That is good news.  Other possible benefits (I don't know
    Per> enough to other than guess/hope):

All the things you mention are probably true.

    Per>   - If the C grammar is re-written as the same time, you can
    Per> perhaps share much of the code.

We do not plan to replace the C parser -- at this time -- but we do
plan to make that an easy thing to do in the future.  Gradually, I
want to see more and more of the front-ends combined.

    Per>   - Can use same grammer is other applications (such as gdb),
    Per> some of which might need a reentrant grammar, which is
    Per> difficult with yacc.  (A re-entrant grammar was a goal for
    Per> cppexp.c.)

Yes.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


More information about the Gcc mailing list