This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Objective C lexer - small cleanup
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>, Zack Weinberg <zackw at Stanford dot EDU>
- Subject: Re: Objective C lexer - small cleanup
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Fri, 29 Jun 2001 12:26:28 -0700
- cc: Stan Shebs <shebs at apple dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
> Have you seen what Mark's doing on his C++ parser branch? He's got a
> circular token buffer. Eventually we should probably share code to do
> this token saving / pushback / whatever you want to call it.
Excellent, the code proved semi-readable.
That code is working well, now that I got the bugs out. All
that pointer manipulation made my head hurt at first. I don't know
how efficient it is; I haven't tried to measure anything about the
new parser yet. Correctness first. It seems to be the right abstraction,
though; you kind of queue up things for a while, and then forget
about some of the old ones. It does allow arbitrary lookahead/pushback
very nicely.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com