ANTLR3_PARSE_TREE_struct(3)
π ANTLR3_PARSE_TREE_struct π
okay so bestie, we're in the ANTLR3C manual and today's main character is ANTLR3_PARSE_TREE_struct(3) β the parse tree struct itself. she's a struct, she holds fields, she's got opinions. let's get into it π¦
NAME
ANTLR3_PARSE_TREE_struct β that's it, that's the whole name section. iconic minimalism, no notes π
SYNOPSIS
#include <antlr3parsetree.h>
β¨ Data Fields β¨
ANTLR3_BASE_TREE baseTreeβ a whole encapsulated BASE TREE structure (and listen, it is NOT a pointer, it's the actual thing living inside) that does a lot of the dirty work of node management for you. she's the unpaid intern of this struct fr fr πpANTLR3_BASE_TREE(* dupNode )(struct ANTLR3_PARSE_TREE_struct *tree)β how to dup this node. that's the whole vibe.void(* free )(struct ANTLR3_PARSE_TREE_struct *tree)β the free hook, no extra description given, she simply exists πΈANTLR3_UINT32(* getType )(struct ANTLR3_PARSE_TREE_struct *tree)β return the type of this node πvoid * payloadβ the payload that the parse tree node passes around. lowkey the whole point of the node honestly.void * superβ any interface that implements methods in this interface may need to point back to itself using this pointer to its super structure. self-referential queen behavior πͺpANTLR3_STRING(* toString )(struct ANTLR3_PARSE_TREE_struct *payload)β return the string representation of the payload (must be installed when the payload is added and point to a function that knwos how to manifest apANTLR3_STRINGfrom a node. yes the parenthesis is never closed, we simply live with it π«Ά
Field Documentation
π ANTLR3_BASE_TREE ANTLR3_PARSE_TREE_struct::baseTree
an encapsulated BASE TREE structure (NOT a pointer!!) that perfoms a lot of the dirty work of node management. she's embedded, she's doing the labor, respect her.
π¦ pANTLR3_BASE_TREE(* ANTLR3_PARSE_TREE_struct::dupNode) (struct ANTLR3_PARSE_TREE_struct *tree)
how to dup this node. short, sweet, slay.
πΈ void(* ANTLR3_PARSE_TREE_struct::free) (struct ANTLR3_PARSE_TREE_struct *tree)
the free function pointer. no description in the original, so no description from me β I'm not gonna make stuff up about her, that's not the vibe.
π ANTLR3_UINT32(* ANTLR3_PARSE_TREE_struct::getType) (struct ANTLR3_PARSE_TREE_struct *tree)
return the type of this node. periodt.
π void* ANTLR3_PARSE_TREE_struct::payload
the payload that the parse tree node passes around. carry it, bestie, it's yours now.
π void* ANTLR3_PARSE_TREE_struct::super
any interface that implements methods in this interface may need to point back to itself using this pointer to its super structure. it's giving "I contain multitudes" energy honestly.
β pANTLR3_STRING(* ANTLR3_PARSE_TREE_struct::toString) (struct ANTLR3_PARSE_TREE_struct *payload)
return the string representation of the payload (must be installed when the payload is added and point to a function that knwos how to manifest a pANTLR3_STRING from a node. install her at payload-add time or she's just not there, no cap.
Author
Generated automatically by Doxygen for ANTLR3C from the source code. so technically nobody "wrote" this, a robot did, and honestly? she ate π€β¨
k bye bestie, go build a tree, you got this ππ
this page is from Version 3.3.1, dated Tue Jul 29 2025 00:00:00 β screenshot it, cite it, frame it, whatever you need π«Άβ¨
π¦ 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