Objective C lexer - small cleanup

Zack Weinberg zackw@Stanford.EDU
Fri Jun 29 00:04:00 GMT 2001


On Fri, Jun 29, 2001 at 07:55:51AM +0100, Neil Booth wrote:
> Zack Weinberg wrote:-
> 
> > > I like your patch.  I'm just a little wary of getting too much code
> > > dependent on the lookahead mechanism.  But that shouldn't stop your
> > > patch going in.
> > 
> > Is this because you want to change the lookahead mechanism, or you're
> > worried about it not working correctly, or what?
> 
> Both :-) It'd be nice to merge it with Mark's, though that might not
> be possible since one would be operating withing cpp_get_token () and
> one outside.  Still, it's worth considering.

Oh, I see what you mean.

Mark's scheme is suitable for his recursive descent parser, and if he
follows through on the threats to make it do C and Objective C too,
then we may wind up using it there too.  For the present C/ObjC
parser, though, it's overkill; cpplib's scheme works fine.

-- 
zw    This notion of the domain specificity of information is, patently, of
      no use to anybody.  I mention it simply to get it out of the way.
      	-- Jerry Fodor, _The Mind Doesn't Work That Way_



More information about the Gcc-patches mailing list