Home | History | Annotate | Download | only in include

Lines Matching refs:tree

2 /// Definition of the ANTLR3 base tree.
45 /// A generic tree implementation with no payload. You must subclass to
47 /// instead of the child-sibling approach in v2. A flat tree (a list) is
59 /// like to a tree node, in many cases saving the need to create their own tree
60 /// and tree adaptors. ANTLR does not use this pointer, but will copy it for you and so on.
65 /// as they belong to the common tree node that implements this.
70 /// and ascending trees as the tree walk progresses.
79 /// for the payload in the supplied tree.
81 pANTLR3_COMMON_TOKEN (*getToken) (struct ANTLR3_BASE_TREE_struct * tree);
83 void (*addChild) (struct ANTLR3_BASE_TREE_struct * tree, void * child);
85 void (*addChildren) (struct ANTLR3_BASE_TREE_struct * tree, pANTLR3_LIST kids);
87 void (*createChildrenList) (struct ANTLR3_BASE_TREE_struct * tree);
89 void * (*deleteChild) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 i);
95 void * (*dupTree) (struct ANTLR3_BASE_TREE_struct * tree);
97 ANTLR3_UINT32 (*getCharPositionInLine) (struct ANTLR3_BASE_TREE_struct * tree);
99 void * (*getChild) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 i);
101 void (*setChildIndex) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_INT32 );
103 ANTLR3_INT32 (*getChildIndex) (struct ANTLR3_BASE_TREE_struct * tree );
105 ANTLR3_UINT32 (*getChildCount) (struct ANTLR3_BASE_TREE_struct * tree);
107 struct ANTLR3_BASE_TREE_struct * (*getParent) (struct ANTLR3_BASE_TREE_struct * tree);
109 void (*setParent) (struct ANTLR3_BASE_TREE_struct * tree, struct ANTLR3_BASE_TREE_struct * parent);
111 ANTLR3_UINT32 (*getType) (struct ANTLR3_BASE_TREE_struct * tree);
113 void * (*getFirstChildWithType) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 type);
115 ANTLR3_UINT32 (*getLine) (struct ANTLR3_BASE_TREE_struct * tree);
117 pANTLR3_STRING (*getText) (struct ANTLR3_BASE_TREE_struct * tree);
119 ANTLR3_BOOLEAN (*isNilNode) (struct ANTLR3_BASE_TREE_struct * tree);
121 void (*setChild) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 i, void * child);
123 pANTLR3_STRING (*toStringTree) (struct ANTLR3_BASE_TREE_struct * tree);
125 pANTLR3_STRING (*toString) (struct ANTLR3_BASE_TREE_struct * tree);
127 void (*freshenPACIndexesAll) (struct ANTLR3_BASE_TREE_struct * tree);
129 void (*freshenPACIndexes) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 offset);
131 void (*reuse) (struct ANTLR3_BASE_TREE_struct * tree);
133 void (*free) (struct ANTLR3_BASE_TREE_struct * tree);