[antlr-interest] Re: Preprocessors - academic question
jsrs701
jsrs701 at yahoo.com
Wed Jun 26 11:22:26 PDT 2002
--- In antlr-interest at y..., John Allen Green <greenj at i...> wrote:
>
> Here's one for you educated folks...
>
> Given a preprocessor which allows branching and unrestricted code
> substitutions, is it impossible to work with the semantics of the
> preprocessing itself?
>
> It would seem to me that since you could have code substitution
doing code
> substitution, it would be impossible to build a parse tree of the
> preprocessing.
Okay, but you could build a tree of the *operations* to be performed,
right? And then apply the operations to the original source file?
Or am I completely not understanding the question?
JSRS
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list