Hi Jim,
I am trying to write a tree grammar that recognizes an AST
and produces a second AST, using the C runtime, but compiling
with a C++ compiler.
In the generated code, I get a problem at lines that look like:
retval.tree = ADAPTOR->rulePostProcessing(ADAPTOR, root_0);
In my grammar file which produces the first AST, the generated
code has the cast to let this be C++ compliant:
retval.tree = (pANTLR3_BASE_TREE)(ADAPTOR->rulePostProcessing(ADAPTOR,
root_0));
Would it be possible to add the casts for tree grammars as well please?
Also, does the C runtime support AST to AST rewrite rules? So something like:
myrule: ^(A foo bar) -> ^(B bar foo);
thank you,
Robert
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
-~----------~----~----~----~------~----~------~--~---