[antlr-interest] [was: CPP parser] AST and pre-processor
Monty Zukowski
monty at codetransform.com
Wed Jan 11 12:36:55 PST 2006
On Jan 11, 2006, at 11:13 AM, Stephen Cheng wrote:
> I am curious about how the C parser deals with pre-processor
> primitives in the AST. Do we need to pre-process the C source prior
> to feeding into antlr to generate the C AST?
>
>
>
Yes, you must preprocess the C source first.
As for C++ AST, I have no suggestions other than extending the tree
parser and tree emitter from the GnuC translation toolkit.
Monty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060111/a366e266/attachment.html
More information about the antlr-interest
mailing list