|LPG question: how to add a method to generated code [message #574213]
||Sat, 15 November 2008 10:36
Registered: July 2009
Hi, not sure if this is the forum for LPG questions but|
I would like to add a getType metod to all the generated AST nod
objects. The method should return a constant representing
the AST node (this to avoid all the instanceof constructs).
What is the best way to do this?
BTW: Is it possible to define that all the AST node inherits from
a class that I declare?
Thanks in advance
Powered by FUDForum
. Page generated in 0.05970 seconds