dcsimg
how to specify class type for the imaginary tree node?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ning_Wang
Posted On:   Tuesday, January 29, 2002 11:29 AM


I 've seen the previous question and answer about
this problem, but I still don't get it. I've also tried
to use the method methioned there to solve #
the problem, but it doesn't seem to work. Instead,
"warning: Can't create AST Node IDSNode " is
raised.
Any one who got any idea about this, please help.
thanks
wang

Re: how to specify class type for the imaginary tree node?

Posted By:   Ric_Klaren  
Posted On:   Wednesday, January 30, 2002 01:13 AM

Java mode I presume? Are you trying to use the heterogeneous AST
stuff? With imaginary nodes and the
#([SOME_IMAGINARY_NODE] .. ) syntax?
Or are you just using a custom AST node class?
In the last case did you call setASTNodeType
before invoking your parser? Look at the
code of ASTFactory.java to see how the factory works.

If your trying heterogeneous AST's then you
may have to do some stuff manually since the
ASTFactory in java does not know about heterogeneous
AST's and only certain node construction syntax
is supported. C++ mode can do more of this
but I noticed some bugs in that as well.

About | Sitemap | Contact