[antlr-interest] Re: Preprocessors - academic question

John Allen Green greenj at ix.netcom.com
Fri Jun 28 12:09:07 PDT 2002

--On 28/06/2002 11:20 AM -0700 mzukowski at yci.com wrote:

> There's no reason you couldn't put the preprocessing junk in at the end,
> right?  I mean if you are radically changing the code then they can expect
> things to change.  Maybe you can take the transformed tree and then start
> some pattern matching to insert macros where appropriate.  You could use
> original invocations of the macros to have a pattern to match against.
> This might make for a good (somewhat) interactive step at the end.  You
> get a chance to refactor the code via macros since the language doesn't
> support objects or whatnot.

Huh. Cool idea - I never thought of that. It would probably work great.

I sure like this mailing list.  :-)



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list