src/antlr3parser.c(3)
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
- 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