Hi Thomas, I am not sure if this is what you are looking for, but there is a C preprocessor in the example grammars (http://www.antlr.org/grammar/1166665121622/Cpp.tar). I think the parts you are looking for are in the macroDefine, macroExecution (CppTree.g) and in the getExpansion method in "FunctionMacro.java"
Hope this helps, Nikos On Fri, Jul 31, 2009 at 3:38 PM, Thomas Jackson < [email protected]> wrote: > Maybe kinda off topic, but does anyone know of any project to expand C > macros in code? I figured someone must have used the ANTLR C Grammar to > do this, but so far my searches have been unsuccessful. > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
