Merge cpplib and front end hashtables, part 1

Per Bothner per@bothner.com
Wed May 16 12:08:00 GMT 2001


Daniel Berlin <dan@cgsoftware.com> writes:

> In other words, macro expansion ain't done in the parser, it's called
> by the evaluator.  It would be a serious hunk of work to move it back
> into the parser, and then make the parser use cpplib internally.

Is there currently any macro expansion at all?  I didn't think so,
in which case there is nothing to move "back".

I really think cpplib expansion should be done by the parser
(in conjunction with lexing), not the evaluator.  Why do you
think it needs to be done by the evaluator?  After all, the
parser already needs access to the symbol table (for typenames).
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/



More information about the Gcc-patches mailing list