I think that you may looking too deep in to this matter. What problem are
you trying to solve?

Jim

> -----Original Message-----
> From: [email protected] [mailto:antlr-interest-
> [email protected]] On Behalf Of ??????? ?????
> Sent: Wednesday, April 27, 2011 3:53 AM
> To: [email protected]
> Subject: [antlr-interest] [C-target] Child-parent relationship
>
> ---------- Пересланное сообщение ---------- От кого: Дмитрий Ильин
> <[email protected]>
> Дата: 27 апреля 2011 г. 17:49
> Тема: [C-target] Child-parent relationship
> Кому: [email protected]
>
>
> Hi!
> Please correct me if I'm wrong. When constructing AST, child-parent
> relationships are created by calling "freshenPACindixesAll" in function
> "addChild"?
> If so why "freshenPACindixesAll" is called only in one branch of if-
> statement?
> (antlr3basetree.c)
>
> Why do we do selected action in function "setParent"? As a parent of
> "tree"
> we set parent of "parent".
>
> static void
> setParent (pANTLR3_BASE_TREE tree, pANTLR3_BASE_TREE parent) {
> ((pANTLR3_COMMON_TREE)(tree->super))->parent = parent == NULL ? NULL :
> ((pANTLR3_COMMON_TREE)(parent->super))->parent;
> }
>
> Dmitry Ilyin
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to