Re: [RFA] Add language-dependent post-parser

Andrew Cagney
2004-04-02T16:25:21Z

> A few responses:
>
>
>>>>> > >But I guess the point is, this is no more elegant than a second pass,
>>>>> > >and whatever you implement I should probably use for C++ anyway so it
>>>>> > >won't be an Ada-specific hook. Does anyone else have an opinion?
>
>
> I guess I don't share Daniel's distaste for multiple passes.
> Generally, I've found them a useful way to cleanly modularize
> sequences of transformations on an AST. In production compilers, the
> downside is performance, but as Daniel also says, this really is not
> an issue with the scale of parsing we do in GDB.

Ditto.

Andrew