"Edward Peschko" <[EMAIL PROTECTED]> writes:

> wrt the below, I was giving it some thought, and was wondering how
> usable the gcc lexer/parser combo was by itself, how 'pluggable' it
> was - my hope was that I could take the lexer/parser and instead of
> making an executable out of the incoming code, I could transform the
> code in place, ie: add extra code of my own choosing that I would then
> compile with gcc.
>
> How feasible would that be? Where's a good place to start?

It's not really feasible.  gcc's lexer and parser are not pluggable at
all.  Obviously it could be done, but it's quite a lot of work.

Ian

Reply via email to