This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Merge cpplib and front end hashtables, part 1
- To: Daniel Berlin <dan at www dot cgsoftware dot com>
- Subject: Re: Merge cpplib and front end hashtables, part 1
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Wed, 16 May 2001 19:02:02 +0100
- Cc: Stan Shebs <shebs at apple dot com>, gcc-patches at gcc dot gnu dot org,Zack Weinberg <zackw at Stanford dot EDU>
- References: <3B01ABD8.6E431CEB@apple.com> <Pine.LNX.4.33.0105161012080.12463-100000@www.cgsoftware.com>
Daniel Berlin wrote:-
> Personally, I could care less either way.
> cpplib as it stands right now is too hard to integrate into GDB, mainly
> because expanding macros in gdb means we want a text string back, not
> tokens.
Surely gdb's C expression parser acts on tokens? If so, why isn't it
easy to just pass the whole expression to cpplib and parse the token
stream back, like the front-ends would (though you only have to handle
expressions this way I imagine). I can't see why text is better to
you than tokens.
Neil.