ANTLR3_STACK_struct(3)

πŸ“¦ version 3.4, in fedora 43

πŸ’– ANTLR3_STACK_struct(3) πŸ’–

okay bestie, welcome to the ANTLR3C manual β€” specifically the page for ANTLR3_STACK_struct and honestly? it's giving "quiet overachiever." ✨


🌸 NAME 🌸

ANTLR3_STACK_struct β€” the Structure that represents a Stack collection. no cap, that's literally it, that's the whole vibe. a stack. but make it C. πŸ₯ž


✨ SYNOPSIS ✨

#include <antlr3collections.h>

πŸŽ€ Data Fields

  • void(* free )(struct ANTLR3_STACK_struct *stack) β€” the lil cleanup bestie πŸ’…
  • void *(* get )(struct ANTLR3_STACK_struct *stack, ANTLR3_INTKEY key) β€” go fetch, but for data 🫢
  • void *(* peek )(struct ANTLR3_STACK_struct *stack) β€” look at the top, don't touch, just admire πŸ‘€
  • void *(* pop )(struct ANTLR3_STACK_struct *stack) β€” take the top one off, bye πŸ‘‹
  • ANTLR3_BOOLEAN(* push )(struct ANTLR3_STACK_struct *stack, void *element, void(ANTLR3_CDECL *freeptr)(void *)) β€” put a new one on top, iconic behavior ⭐
  • ANTLR3_UINT32(* size )(struct ANTLR3_STACK_struct *stack) β€” how many are we talking πŸ“
  • void * top β€” Used for quick access to the top of the stack. main character energy, always front and center πŸ‘‘
  • pANTLR3_VECTOR vector β€” List that supports the stack structure. the backbone, the hype squad, the support system πŸ¦‹

🧚 Detailed Description 🧚

Structure that represents a Stack collection. that's the assignment. that's the whole thing. periodt. πŸ’œ


🌈 Field Documentation 🌈

πŸ’… void(* ANTLR3_STACK_struct::free) (struct ANTLR3_STACK_struct *stack)

Referenced by antlr3CommonTreeNodeStreamFree(), antlr3StackNew(), closeVectorFactory(), factoryClose(), freeLexer(), freeParser(), freeParser(), reset(), and reset().

yes bestie, freeParser() shows up twice and reset() shows up twice in that list. that's not me being messy, that's what the page says. we keep the facts exactly as they are, fr fr. 😭

πŸ”₯ void *(* ANTLR3_STACK_struct::get) (struct ANTLR3_STACK_struct *stack, ANTLR3_INTKEY key)

Referenced by antlr3StackNew(), and combineFollows().

πŸ“ void *(* ANTLR3_STACK_struct::peek) (struct ANTLR3_STACK_struct *stack)

Referenced by antlr3StackNew(), newPoolTree(), and newVector().

πŸ¦‹ void *(* ANTLR3_STACK_struct::pop) (struct ANTLR3_STACK_struct *stack)

Referenced by antlr3StackNew(), newPoolTree(), newVector(), pop(), and popCharStream().

⭐ ANTLR3_BOOLEAN(* ANTLR3_STACK_struct::push) (struct ANTLR3_STACK_struct *stack, void *element, void(ANTLR3_CDECL *freeptr)(void *))

Referenced by antlr3StackNew(), push(), pushCharStream(), returnVector(), and reuse().

πŸ‘‘ ANTLR3_UINT32(* ANTLR3_STACK_struct::size) (struct ANTLR3_STACK_struct *stack)

Referenced by antlr3StackNew(), combineFollows(), nextToken(), and popCharStream().

🌸 void* ANTLR3_STACK_struct::top

Used for quick access to the top of the stack.

Referenced by antlr3StackFree(), antlr3StackNew(), antlr3StackPeek(), antlr3StackPop(), antlr3StackPush(), and popCharStream().

🧚 pANTLR3_VECTOR ANTLR3_STACK_struct::vector

List that supports the stack structure.

Referenced by antlr3StackFree(), antlr3StackGet(), antlr3StackNew(), antlr3StackPop(), antlr3StackPush(), and antlr3StackSize().


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for ANTLR3C from the source code. so like, technically the robot wrote it, but i'm the one hyping it up for you. team effort. 🀝


and that's a wrap, bestie!! πŸŽ€ this page is from Version 3.3.1, dated Tue Jul 29 2025 00:00:00 β€” so go forth, push responsibly, pop with confidence, and never forget to free. mwah. πŸ’–βœ¨

πŸ“¦ where this page comes from