include/antlr3...ersharedstate.h(3)
π include/antlr3recognizersharedstate.h π
okay bestie, welcome to the ANTLR3C manual page for include/antlr3recognizersharedstate.h β yes it's a mouthful, no we're not changing it, it's iconic. π
β¨ NAME β¨
include/antlr3recognizersharedstate.h β so like, the C runtime does not need to model the state of multiple lexers and parsers in the same way the Java runtime does, but it's literally no overhead to reflect that model. no cap. π¦
β¨ SYNOPSIS β¨
#include <antlr3defs.h>
πΈ Data Structures πΈ
struct ANTLR3_RECOGNIZER_SHARED_STATE_structβ every single data element you need to track the current state of any recognizer (lexer, parser, tree parser). all of them. the whole squad. π
π Typedefs π
typedef struct ANTLR3_RECOGNIZER_SHARED_STATE_struct ANTLR3_RECOGNIZER_SHARED_STATEβ same energy as above, all the data elements required to track the current state of any recognizer (lexer, parser, tree parser).
β¨ Detailed Description β¨
So here's the tea π: while the C runtime does not need to model the state of multiple lexers and parsers in the same way as the Java runtime does, it is genuinely no overhead to reflect that model.
In fact the C runtime has always been able to share recognizer state. it was doing it before it was cool. main character energy fr fr. π
This 'class' (scare quotes are the original's, not mine, we respect the quotes) therefore defines all the elements of a recognizer β either lexer, parser or tree parser β that are needed to track the current recognition state. Multiple recognizers may then share this state, for instance when one grammar imports another. sharing is caring bestie π«Ά
β¨ Typedef Documentation β¨
π typedef struct ANTLR3_RECOGNIZER_SHARED_STATE_struct ANTLR3_RECOGNIZER_SHARED_STATE π
All the data elements required to track the current state of any recognizer (lexer, parser, tree parser). May be shared between multiple recognizers such that grammar inheritance is easily supported. slay. β¨
β¨ Author β¨
Generated automatically by Doxygen for ANTLR3C from the source code. not me being machine-written π it's giving auto-generated and honestly? still iconic.
lowkey reminder: this whole page isVersion 3.3.1, datedTue Jul 29 2025. write it down, put it in your notes app, tell your group chat π
and that's the vibe check, bestie β go share some recognizer state responsibly. π§π
π¦ 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