src/antlr3parser.c(3)

πŸ“¦ version 3.4, in fedora 43

src/antlr3parser.c πŸ’–

okay so bestie, welcome to the ANTLR3C manual β€” this page is literally all about src/antlr3parser.c, and it's giving base functionality for an ANTLR3 parser. no cap, that's the whole vibe. grab a strawberry πŸ“ and let's get into it.


✨ NAME ✨

src/antlr3parser.c β€” the implementation of the base functionality for an ANTLR3 parser. that's it, that's the girl. πŸ‘‘


✨ SYNOPSIS ✨

#include <antlr3parser.h>

🌸 Functions 🌸

ANTLR3_API pANTLR3_PARSER antlr3ParserNew (ANTLR3_UINT32 sizeHint,
    pANTLR3_RECOGNIZER_SHARED_STATE state)
ANTLR3_API pANTLR3_PARSER antlr3ParserNewStream (ANTLR3_UINT32 sizeHint,
    pANTLR3_TOKEN_STREAM tstream, pANTLR3_RECOGNIZER_SHARED_STATE state)
ANTLR3_API pANTLR3_PARSER antlr3ParserNewStreamDbg (ANTLR3_UINT32
    sizeHint, pANTLR3_TOKEN_STREAM tstream, pANTLR3_DEBUG_EVENT_LISTENER
    dbg, pANTLR3_RECOGNIZER_SHARED_STATE state)
static void freeParser (pANTLR3_PARSER parser)
static pANTLR3_TOKEN_STREAM getTokenStream (pANTLR3_PARSER parser)
static void setDebugListener (pANTLR3_PARSER parser,
    pANTLR3_DEBUG_EVENT_LISTENER dbg)
static void setTokenStream (pANTLR3_PARSER parser, pANTLR3_TOKEN_STREAM)

πŸ’… Detailed Description πŸ’…

Implementation of the base functionality for an ANTLR3 parser. slay, that's literally the mission statement. πŸŽ€


πŸ¦‹ Function Documentation πŸ¦‹

⭐ ANTLR3_API pANTLR3_PARSER antlr3ParserNew (ANTLR3_UINT32 sizeHint, pANTLR3_RECOGNIZER_SHARED_STATE state)

the way this one pulls up References: ANTLR3_TYPE_PARSER, antlr3BaseRecognizerNew(), antlr3MTExceptionNew(), ANTLR3_BASE_RECOGNIZER_struct::exConstruct, ANTLR3_PARSER_struct::free, freeParser(), ANTLR3_PARSER_struct::getTokenStream, getTokenStream(), ANTLR3_PARSER_struct::rec, ANTLR3_PARSER_struct::setDebugListener, setDebugListener(), ANTLR3_PARSER_struct::setTokenStream, setTokenStream(), and ANTLR3_BASE_RECOGNIZER_struct::super.

and it's Referenced by antlr3ParserNewStream() β€” iconic behavior honestly. πŸ”₯

⭐ ANTLR3_API pANTLR3_PARSER antlr3ParserNewStream (ANTLR3_UINT32 sizeHint, pANTLR3_TOKEN_STREAM tstream, pANTLR3_RECOGNIZER_SHARED_STATE state)

References: antlr3ParserNew(), and ANTLR3_PARSER_struct::setTokenStream.

Referenced by antlr3ParserNewStreamDbg(). main character energy fr fr. ✨

⭐ ANTLR3_API pANTLR3_PARSER antlr3ParserNewStreamDbg (ANTLR3_UINT32 sizeHint, pANTLR3_TOKEN_STREAM tstream, pANTLR3_DEBUG_EVENT_LISTENER dbg, pANTLR3_RECOGNIZER_SHARED_STATE state)

References: antlr3ParserNewStream(), and ANTLR3_PARSER_struct::setDebugListener.

that's it, that's the whole function. simple, clean, obsessed. πŸ’œ

⭐ void freeParser (pANTLR3_PARSER parser) [static]

the way this one is static β€” lowkey a private queen. 🫢

References: ANTLR3_RECOGNIZER_SHARED_STATE_struct::following, ANTLR3_BASE_RECOGNIZER_struct::free, ANTLR3_STACK_struct::free, ANTLR3_PARSER_struct::rec, and ANTLR3_BASE_RECOGNIZER_struct::state.

Referenced by antlr3ParserNew(), and antlr3TreeParserNewStream(). πŸ’€

⭐ pANTLR3_TOKEN_STREAM getTokenStream (pANTLR3_PARSER parser) [static]

References: ANTLR3_PARSER_struct::tstream.

Referenced by antlr3ParserNew(). get you a function that just does the one thing. periodt. πŸ’…

⭐ void setDebugListener (pANTLR3_PARSER parser, pANTLR3_DEBUG_EVENT_LISTENER dbg) [static]

References: ANTLR3_BASE_RECOGNIZER_struct::debugger, ANTLR3_PARSER_struct::rec, ANTLR3_TOKEN_STREAM_struct::setDebugListener, and ANTLR3_PARSER_struct::tstream.

Referenced by antlr3CommonTokenStreamNew(), and antlr3ParserNew(). it's giving debug girlie. πŸ›βœ¨

⭐ void setTokenStream (pANTLR3_PARSER parser, pANTLR3_TOKEN_STREAM tstream) [static]

References: ANTLR3_PARSER_struct::rec, ANTLR3_BASE_RECOGNIZER_struct::reset, and ANTLR3_PARSER_struct::tstream.

Referenced by antlr3ParserNew(). and that's the whole roster bestie, ate and left no crumbs. 🌈


πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for ANTLR3C from the source code. not a human, just a robot doing its little thing. πŸ€–πŸ’–


and that's a wrap, bestie! this was Version 3.3.1, dated Tue Jul 29 2025 00:00:00, straight from src/antlr3parser.c(3) in the ANTLR3C manual. go forth and parse, you absolute legend. πŸ¦‹πŸ’œπŸŒΈ
πŸ“¦ where this page comes from