src/antlr3commontree.c - Online Linux Manual PageSection : 3
Updated : Tue Jan 26 2021
Source : Version 3.3.1
Note : ANTLR3C

NAMEsrc/antlr3commontree.c

SYNOPSIS
#include <antlr3commontree​.h>

FunctionsANTLR3_API pANTLR3_ARBORETUM antlr3ArboretumNew (pANTLR3_STRING_FACTORY strFactory)
ANTLR3_API pANTLR3_COMMON_TREE antlr3CommonTreeNew ()
ANTLR3_API pANTLR3_COMMON_TREE antlr3CommonTreeNewFromToken (pANTLR3_COMMON_TOKEN token)
ANTLR3_API void antlr3SetCTAPI (pANTLR3_COMMON_TREE tree)
static void createChildrenList (pANTLR3_BASE_TREE tree)
Create a new vector for holding child nodes using the inbuilt vector factory​.
static pANTLR3_BASE_TREE dupNode (pANTLR3_BASE_TREE tree)
static void factoryClose (pANTLR3_ARBORETUM factory)
static ANTLR3_UINT32 getCharPositionInLine (pANTLR3_BASE_TREE tree)
static ANTLR3_INT32 getChildIndex (pANTLR3_BASE_TREE tree)
static ANTLR3_UINT32 getLine (pANTLR3_BASE_TREE tree)
static pANTLR3_BASE_TREE getParent (pANTLR3_BASE_TREE tree)
static pANTLR3_STRING getText (pANTLR3_BASE_TREE tree)
static pANTLR3_COMMON_TOKEN getToken (pANTLR3_BASE_TREE tree)
static ANTLR3_UINT32 getType (pANTLR3_BASE_TREE tree)
static ANTLR3_BOOLEAN isNilNode (pANTLR3_BASE_TREE tree)
static pANTLR3_BASE_TREE newFromToken (pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TOKEN token)
static pANTLR3_BASE_TREE newFromTree (pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TREE tree)
static ANTLR3_BOOLEAN newPool (pANTLR3_ARBORETUM factory)
static pANTLR3_BASE_TREE newPoolTree (pANTLR3_ARBORETUM factory)
static void reuse (pANTLR3_BASE_TREE tree)
Clean up any child vector that the tree might have, so it can be reused, then add it into the reuse stack​.
static void setChildIndex (pANTLR3_BASE_TREE tree, ANTLR3_INT32 i)
static void setParent (pANTLR3_BASE_TREE tree, pANTLR3_BASE_TREE parent)
static pANTLR3_STRING toString (pANTLR3_BASE_TREE tree)

Function Documentation

ANTLR3_API pANTLR3_ARBORETUM antlr3ArboretumNew (pANTLR3_STRING_FACTORY strFactory)References ANTLR3_MALLOC, antlr3SetCTAPI(), antlr3StackNew(), antlr3VectorFactoryNew(), ANTLR3_COMMON_TREE_struct::baseTree, ANTLR3_ARBORETUM_struct::close, ANTLR3_COMMON_TREE_struct::factory, factoryClose(), newFromToken(), ANTLR3_ARBORETUM_struct::newFromToken, newFromTree(), ANTLR3_ARBORETUM_struct::newFromTree, newPool(), newPoolTree(), ANTLR3_ARBORETUM_struct::newTree, ANTLR3_ARBORETUM_struct::nilStack, ANTLR3_ARBORETUM_struct::pools, ANTLR3_BASE_TREE_struct::strFactory, ANTLR3_ARBORETUM_struct::thisPool, ANTLR3_ARBORETUM_struct::unTruc, and ANTLR3_ARBORETUM_struct::vFactory​. Referenced by ANTLR3_TREE_ADAPTORNew()​.

ANTLR3_API pANTLR3_COMMON_TREE antlr3CommonTreeNew (void)References ANTLR3_CALLOC, and antlr3SetCTAPI()​. Referenced by antlr3CommonTreeNewFromToken()​.

ANTLR3_API pANTLR3_COMMON_TREE antlr3CommonTreeNewFromToken (pANTLR3_COMMON_TOKEN token)References antlr3CommonTreeNew(), and ANTLR3_COMMON_TREE_struct::token​. Referenced by newDownNode(), and newUpNode()​.

ANTLR3_API void antlr3SetCTAPI (pANTLR3_COMMON_TREE tree)References antlr3BaseTreeNew(), ANTLR3_COMMON_TREE_struct::baseTree, ANTLR3_COMMON_TREE_struct::childIndex, ANTLR3_BASE_TREE_struct::children, createChildrenList(), ANTLR3_BASE_TREE_struct::createChildrenList, dupNode(), ANTLR3_BASE_TREE_struct::dupNode, ANTLR3_BASE_TREE_struct::free, getCharPositionInLine(), ANTLR3_BASE_TREE_struct::getCharPositionInLine, getChildIndex(), ANTLR3_BASE_TREE_struct::getChildIndex, getLine(), ANTLR3_BASE_TREE_struct::getLine, getParent(), ANTLR3_BASE_TREE_struct::getParent, getText(), ANTLR3_BASE_TREE_struct::getText, getToken(), ANTLR3_BASE_TREE_struct::getToken, getType(), ANTLR3_BASE_TREE_struct::getType, isNilNode(), ANTLR3_BASE_TREE_struct::isNilNode, ANTLR3_COMMON_TREE_struct::parent, reuse(), ANTLR3_BASE_TREE_struct::reuse, setChildIndex(), ANTLR3_BASE_TREE_struct::setChildIndex, setParent(), ANTLR3_BASE_TREE_struct::setParent, ANTLR3_COMMON_TREE_struct::startIndex, ANTLR3_COMMON_TREE_struct::stopIndex, ANTLR3_BASE_TREE_struct::super, ANTLR3_COMMON_TREE_struct::token, toString(), ANTLR3_BASE_TREE_struct::toString, and ANTLR3_BASE_TREE_struct::u​. Referenced by antlr3ArboretumNew(), antlr3CommonTreeNew(), antlr3CommonTreeNodeStreamNew(), antlr3CommonTreeNodeStreamNewStream(), and newPoolTree()​.

static void createChildrenList (pANTLR3_BASE_TREE tree) [static]Create a new vector for holding child nodes using the inbuilt vector factory​. References ANTLR3_BASE_TREE_struct::children, and ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static pANTLR3_BASE_TREE dupNode (pANTLR3_BASE_TREE tree) [static]References ANTLR3_COMMON_TREE_struct::factory, ANTLR3_ARBORETUM_struct::newFromTree, and ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static void factoryClose (pANTLR3_ARBORETUM factory) [static]References ANTLR3_FREE, ANTLR3_VECTOR_FACTORY_struct::close, ANTLR3_STACK_struct::free, ANTLR3_ARBORETUM_struct::nilStack, ANTLR3_ARBORETUM_struct::pools, ANTLR3_ARBORETUM_struct::thisPool, and ANTLR3_ARBORETUM_struct::vFactory​. Referenced by antlr3ArboretumNew()​.

static ANTLR3_UINT32 getCharPositionInLine (pANTLR3_BASE_TREE tree) [static]References ANTLR3_BASE_TREE_struct::getCharPositionInLine, ANTLR3_COMMON_TOKEN_struct::getCharPositionInLine, ANTLR3_BASE_TREE_struct::getChild, ANTLR3_BASE_TREE_struct::getChildCount, and ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static ANTLR3_INT32 getChildIndex (pANTLR3_BASE_TREE tree) [static]References ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static ANTLR3_UINT32 getLine (pANTLR3_BASE_TREE tree) [static]References ANTLR3_BASE_TREE_struct::getChild, ANTLR3_BASE_TREE_struct::getChildCount, ANTLR3_BASE_TREE_struct::getLine, ANTLR3_COMMON_TOKEN_struct::getLine, ANTLR3_BASE_TREE_struct::super, and ANTLR3_COMMON_TREE_struct::token​. Referenced by antlr3SetCTAPI()​.

static pANTLR3_BASE_TREE getParent (pANTLR3_BASE_TREE tree) [static]References ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static pANTLR3_STRING getText (pANTLR3_BASE_TREE tree) [static]References ANTLR3_BASE_TREE_struct::toString​. Referenced by antlr3SetCTAPI()​.

static pANTLR3_COMMON_TOKEN getToken (pANTLR3_BASE_TREE tree) [static]References ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static ANTLR3_UINT32 getType (pANTLR3_BASE_TREE tree) [static]References ANTLR3_COMMON_TOKEN_struct::getType, ANTLR3_BASE_TREE_struct::super, and ANTLR3_COMMON_TREE_struct::token​. Referenced by antlr3SetCTAPI()​.

static ANTLR3_BOOLEAN isNilNode (pANTLR3_BASE_TREE tree) [static]References ANTLR3_FALSE, ANTLR3_TRUE, and ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static pANTLR3_BASE_TREE newFromToken (pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TOKEN token) [static]References ANTLR3_ARBORETUM_struct::newTree, and ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3ArboretumNew()​.

static pANTLR3_BASE_TREE newFromTree (pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TREE tree) [static]References ANTLR3_COMMON_TREE_struct::baseTree, ANTLR3_ARBORETUM_struct::newTree, ANTLR3_BASE_TREE_struct::super, ANTLR3_COMMON_TREE_struct::token, and ANTLR3_BASE_TREE_struct::u​. Referenced by antlr3ArboretumNew()​.

static ANTLR3_BOOLEAN newPool (pANTLR3_ARBORETUM factory) [static]References ANTLR3_FACTORY_POOL_SIZE, ANTLR3_FALSE, ANTLR3_MALLOC, ANTLR3_REALLOC, ANTLR3_TRUE, ANTLR3_ARBORETUM_struct::nextTree, ANTLR3_ARBORETUM_struct::pools, and ANTLR3_ARBORETUM_struct::thisPool​. Referenced by antlr3ArboretumNew(), and newPoolTree()​.

static pANTLR3_BASE_TREE newPoolTree (pANTLR3_ARBORETUM factory) [static]References ANTLR3_FACTORY_POOL_SIZE, antlr3SetCTAPI(), ANTLR3_COMMON_TREE_struct::baseTree, ANTLR3_COMMON_TREE_struct::factory, newPool(), ANTLR3_ARBORETUM_struct::nextTree, ANTLR3_ARBORETUM_struct::nilStack, ANTLR3_STACK_struct::peek, ANTLR3_ARBORETUM_struct::pools, ANTLR3_STACK_struct::pop, ANTLR3_BASE_TREE_struct::strFactory, ANTLR3_BASE_TREE_struct::super, ANTLR3_ARBORETUM_struct::thisPool, and ANTLR3_ARBORETUM_struct::unTruc​. Referenced by antlr3ArboretumNew()​.

static void reuse (pANTLR3_BASE_TREE tree) [static]Clean up any child vector that the tree might have, so it can be reused, then add it into the reuse stack​. References ANTLR3_COMMON_TREE_struct::baseTree, ANTLR3_BASE_TREE_struct::children, ANTLR3_VECTOR_struct::clear, ANTLR3_COMMON_TREE_struct::factory, ANTLR3_ARBORETUM_struct::nilStack, ANTLR3_STACK_struct::push, and ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static void setChildIndex (pANTLR3_BASE_TREE tree, ANTLR3_INT32 i) [static]References ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static void setParent (pANTLR3_BASE_TREE tree, pANTLR3_BASE_TREE parent) [static]References ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

static pANTLR3_STRING toString (pANTLR3_BASE_TREE tree) [static]References ANTLR3_TRUE, ANTLR3_BASE_TREE_struct::getText, ANTLR3_BASE_TREE_struct::isNilNode, ANTLR3_STRING_FACTORY_struct::newPtr, nilNode(), ANTLR3_BASE_TREE_struct::strFactory, and ANTLR3_BASE_TREE_struct::super​. Referenced by antlr3SetCTAPI()​.

AuthorGenerated automatically by Doxygen for ANTLR3C from the source code​.
0
Johanes Gumabo
Data Size   :   43,246 byte
man-antlr3-dupNode.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 188,277
Visitor ID   :     :  
Visitor IP   :   3.147.49.19   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.