Re: testing AST nodes



On Mar 31, 7:48 am, Quintria <mikro...@xxxxx> wrote:
SimpleNode class may be modified after it is generated and it will not
be rewritten.

I would suggest adding to it your own method getId()

Works like a charm!

Could I suggest/enter a bug/whatever to someone from the JavaCC team
that some sort of access to a Node's id be make public so that
comparisons
can be made to to the XXXTreeConstants.JJyyy constants (instead of
instanceof)?

.