[antlr-interest] passing parts of the parse around as parameters(newbie)

Carter Cheng carter_cheng at yahoo.com
Mon Jan 26 18:48:51 PST 2009


Thanks. Is it possible to insert this tree back into the AST? I know there is sort of an example of this in the book but the C Runtime seems to use slightly different structures.

My original thought was to sort of cheat but I am not sure how well this would work i.e. xxxx_return objects in the C runtime seem all to be typedefed to a ****_Ctx_struct so i was wondering if i could safely pass this around (though i still dont know how to reincorporate it into the AST manually).

Thanks in advance,

Carter.




      


More information about the antlr-interest mailing list