DERIVED_FROM_P

2005-09-26 Thread Humberto Rocha

Hi:

I'm using the The intermediate representation used by the C and C++ front 
ends:

http://gcc.gnu.org/onlinedocs/gccint/Trees.html

I need know what DERIVED_FROM_P do and How use this...

Is there any source code sample?
Thanks!

--
Humberto




root tree gcc

2005-09-29 Thread Humberto Rocha

Hi...

I am using the front end pinapa
(http://greensocs.sourceforge.net/pinapa/doc/html/index.html)
and it API has a function to get the tree of body of a method C++:

tree method_tree= pinapa::st_process_deco::get(method)->get_gcc_body();

i use the macro DECL_CLASS_CONTEXT to capture the tree of class:

tree class_tree= DECL_CLASS_CONTEXT(method_tree);

now i need something above of this...
How I access the node root of my AST?

Thanks...
--
Humberto