ANTLR3_PARSE_TREE_struct(3)

πŸ“¦ version 3.4, in fedora 43

πŸ’– 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 a pANTLR3_STRING from 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