src/antlr3basetree.c(3)
πΈ src/antlr3basetree.c πΈ
okay bestie, welcome to the ANTLR3C house tour π this is the manual page for src/antlr3basetree.c, section 3 of the manual, and it's literally the whole base tree vibe β every function, every reference, every "referenced by", all of it. no skipping. periodt.
β¨ NAME β¨
src/antlr3basetree.c β that's the file, that's the whole name, she's simple and she knows it π
π¦ SYNOPSIS π¦
#include <antlr3basetree.h>
π Functions π
static void addChild (pANTLR3_BASE_TREE tree, pANTLR3_BASE_TREE child)static void addChildren (pANTLR3_BASE_TREE tree, pANTLR3_LIST kids)
Add all elements of the supplied list as children of this node.
ANTLR3_API pANTLR3_BASE_TREE antlr3BaseTreeNew (pANTLR3_BASE_TREE tree)static void * deleteChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i)static void * dupTree (pANTLR3_BASE_TREE tree)static void freshenPACIndexes (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 offset)
Set the parent and child indexes for some of the children of the supplied tree, starting with the child at the supplied index.
static void freshenPACIndexesAll (pANTLR3_BASE_TREE tree)
Set the parent and child indexes for all children of the supplied tree.
static ANTLR3_UINT32 getCharPositionInLine (pANTLR3_BASE_TREE tree)static void * getChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i)static ANTLR3_UINT32 getChildCount (pANTLR3_BASE_TREE tree)static pANTLR3_BASE_TREE getFirstChildWithType (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 type)static ANTLR3_UINT32 getLine (pANTLR3_BASE_TREE tree)static void replaceChildren (pANTLR3_BASE_TREE parent, ANTLR3_INT32 startChildIndex, ANTLR3_INT32 stopChildIndex, pANTLR3_BASE_TREE newTree)
Delete children from start to stop and replace with t even if t is a list (nil-root tree).
static void setChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i, void *child)static pANTLR3_STRING toStringTree (pANTLR3_BASE_TREE tree)
π Function Documentation π
π void addChild (pANTLR3_BASE_TREE tree, pANTLR3_BASE_TREE child) [static]
References ANTLR3_VECTOR_struct::add, ANTLR3_CDECL, ANTLR3_TRUE, ANTLR3_BASE_TREE_struct::children, ANTLR3_BASE_TREE_struct::createChildrenList, ANTLR3_BASE_TREE_struct::free, freshenPACIndexesAll(), ANTLR3_VECTOR_struct::get, ANTLR3_BASE_TREE_struct::isNilNode, ANTLR3_BASE_TREE_struct::setChildIndex, ANTLR3_BASE_TREE_struct::setParent, and ANTLR3_VECTOR_struct::size
Referenced by antlr3BaseTreeAdaptorInit(), antlr3BaseTreeNew(), and antlr3DebugListenerNew()
π void addChildren (pANTLR3_BASE_TREE tree, pANTLR3_LIST kids) [static]
Add all elements of the supplied list as children of this node. she's the group-chat add-all, fr fr π«Ά
References ANTLR3_BASE_TREE_struct::addChild, ANTLR3_LIST_struct::get, and ANTLR3_LIST_struct::size
Referenced by antlr3BaseTreeNew()
π ANTLR3_API pANTLR3_BASE_TREE antlr3BaseTreeNew (pANTLR3_BASE_TREE tree)
References addChild(), ANTLR3_BASE_TREE_struct::addChild, addChildren(), ANTLR3_BASE_TREE_struct::addChildren, ANTLR3_BASE_TREE_struct::children, ANTLR3_BASE_TREE_struct::deleteChild, deleteChild(), ANTLR3_BASE_TREE_struct::dupTree, dupTree(), ANTLR3_BASE_TREE_struct::freshenPACIndexes, freshenPACIndexes(), ANTLR3_BASE_TREE_struct::freshenPACIndexesAll, freshenPACIndexesAll(), ANTLR3_BASE_TREE_struct::getCharPositionInLine, getCharPositionInLine(), ANTLR3_BASE_TREE_struct::getChild, getChild(), ANTLR3_BASE_TREE_struct::getChildCount, getChildCount(), ANTLR3_BASE_TREE_struct::getFirstChildWithType, getFirstChildWithType(), ANTLR3_BASE_TREE_struct::getLine, getLine(), ANTLR3_BASE_TREE_struct::replaceChildren, replaceChildren(), ANTLR3_BASE_TREE_struct::setChild, setChild(), ANTLR3_BASE_TREE_struct::strFactory, ANTLR3_BASE_TREE_struct::toStringTree, and toStringTree()
Referenced by antlr3SetCTAPI()
π void * deleteChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i) [static]
References ANTLR3_BASE_TREE_struct::children, and ANTLR3_VECTOR_struct::remove
Referenced by ANTLR3_TREE_ADAPTORNew(), and antlr3BaseTreeNew()
π void * dupTree (pANTLR3_BASE_TREE tree) [static]
References ANTLR3_BASE_TREE_struct::addChild, ANTLR3_BASE_TREE_struct::children, ANTLR3_BASE_TREE_struct::dupNode, ANTLR3_BASE_TREE_struct::dupTree, ANTLR3_VECTOR_struct::get, and ANTLR3_VECTOR_struct::size
Referenced by antlr3BaseTreeAdaptorInit(), antlr3BaseTreeNew(), antlr3RewriteRuleSubtreeStreamNewAE(), antlr3RewriteRuleSubtreeStreamNewAEE(), and antlr3RewriteRuleSubtreeStreamNewAEV()
π void freshenPACIndexes (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 offset) [static]
Set the parent and child indexes for some of the children of the supplied tree, starting with the child at the supplied index. glow-up but make it indexes β¨
References ANTLR3_BASE_TREE_struct::getChild, ANTLR3_BASE_TREE_struct::getChildCount, ANTLR3_BASE_TREE_struct::setChildIndex, and ANTLR3_BASE_TREE_struct::setParent
Referenced by antlr3BaseTreeNew()
π void freshenPACIndexesAll (pANTLR3_BASE_TREE tree) [static]
Set the parent and child indexes for all children of the supplied tree. no child left behind, she did the whole roster π
References ANTLR3_BASE_TREE_struct::freshenPACIndexes
Referenced by addChild(), and antlr3BaseTreeNew()
π ANTLR3_UINT32 getCharPositionInLine (pANTLR3_BASE_TREE tree) [static]
Referenced by antlr3BaseTreeNew(), antlr3LexerNew(), antlr3RecognitionExceptionNew(), antlr3SetCTAPI(), and antlr3SetTokenAPI()
π void * getChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i) [static]
References ANTLR3_BASE_TREE_struct::children, ANTLR3_VECTOR_struct::get, and ANTLR3_VECTOR_struct::size
Referenced by ANTLR3_TREE_ADAPTORNew(), antlr3BaseTreeAdaptorInit(), and antlr3BaseTreeNew()
π ANTLR3_UINT32 getChildCount (pANTLR3_BASE_TREE tree) [static]
References ANTLR3_BASE_TREE_struct::children, and ANTLR3_VECTOR_struct::size
Referenced by ANTLR3_TREE_ADAPTORNew(), antlr3BaseTreeAdaptorInit(), and antlr3BaseTreeNew()
π pANTLR3_BASE_TREE getFirstChildWithType (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 type) [static]
References ANTLR3_BASE_TREE_struct::children, ANTLR3_VECTOR_struct::get, ANTLR3_BASE_TREE_struct::getType, and ANTLR3_VECTOR_struct::size
Referenced by antlr3BaseTreeNew()
π ANTLR3_UINT32 getLine (pANTLR3_BASE_TREE tree) [static]
Referenced by antlr3BaseTreeNew(), antlr3LexerNew(), antlr3RecognitionExceptionNew(), antlr3SetCTAPI(), and antlr3SetTokenAPI()
π void replaceChildren (pANTLR3_BASE_TREE parent, ANTLR3_INT32 startChildIndex, ANTLR3_INT32 stopChildIndex, pANTLR3_BASE_TREE newTree) [static]
Delete children from start to stop and replace with t even if t is a list (nil-root tree). Num of children can increase or decrease. and heads up bestie β for huge child lists, inserting children can force walking rest of children to set their child index; could be slow. not a vibe, just facts π
References ANTLR3_VECTOR_struct::add, ANTLR3_FALSE, ANTLR3_TRUE, antlr3VectorNew(), ANTLR3_STRING_struct::chars, ANTLR3_BASE_TREE_struct::children, ANTLR3_VECTOR_struct::elements, ANTLR3_BASE_TREE_struct::freshenPACIndexes, ANTLR3_VECTOR_struct::get, ANTLR3_BASE_TREE_struct::getText, ANTLR3_BASE_TREE_struct::isNilNode, ANTLR3_VECTOR_struct::remove, ANTLR3_VECTOR_struct::set, ANTLR3_BASE_TREE_struct::setChildIndex, ANTLR3_BASE_TREE_struct::setParent, and ANTLR3_VECTOR_struct::size
Referenced by ANTLR3_TREE_ADAPTORNew(), antlr3BaseTreeNew(), and antlr3TreeNodeStreamNew()
π void setChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i, void * child) [static]
References ANTLR3_FALSE, ANTLR3_BASE_TREE_struct::children, ANTLR3_BASE_TREE_struct::createChildrenList, and ANTLR3_VECTOR_struct::set
Referenced by ANTLR3_TREE_ADAPTORNew(), and antlr3BaseTreeNew()
π pANTLR3_STRING toStringTree (pANTLR3_BASE_TREE tree) [static]
References ANTLR3_FALSE, ANTLR3_BASE_TREE_struct::children, ANTLR3_VECTOR_struct::get, ANTLR3_BASE_TREE_struct::isNilNode, ANTLR3_STRING_FACTORY_struct::newRaw, ANTLR3_VECTOR_struct::size, ANTLR3_BASE_TREE_struct::strFactory, ANTLR3_BASE_TREE_struct::toString, and ANTLR3_BASE_TREE_struct::toStringTree
Referenced by antlr3BaseTreeNew()
π Author π
Generated automatically by Doxygen for ANTLR3C from the source code. not me being auto-generated by a doc tool, she's literally doing it herself πβ¨
Version 3.3.1 β Tue Jul 29 2025 00:00:00 β src/antlr3basetree.c(3)
that's the whole page bestie, every flag, every reference, every "referenced by", nothing skipped, no cap π«Ά go read the source and slay ππ¦π
π¦ where this page comes from
- fedora 43: antlr3-C-devel 1:3.4-3.5.3.14.fc43 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms