include/antlr3errors.h(3)
π include/antlr3errors.h π
okay bestie, welcome to include/antlr3errors.h β this is the header that ships with ANTLR3C, and this little page is its section 3 man page. It's literally just a pile of macros that the whole library leans on for error codes and boolean vibes. No cap. π«Ά
β¨ SYNOPSIS β¨
π Macros π
#define ANTLR3_CHARSTREAM_EOF 0xFFFFFFFFβ the end-of-character-stream marker, and also not a valid Unicode code point (so don't go trying to print it, bestie π).#define ANTLR3_ERR_BASE 0β the base every other error code is measured from.#define ANTLR3_ERR_HASHDUP (ANTLR3_ERR_BASE + 3)β hash duplicate error code.#define ANTLR3_ERR_NOFILE (ANTLR3_ERR_BASE + 2)β no-file error code.#define ANTLR3_ERR_NOMEM (ANTLR3_ERR_BASE + 1)β out-of-memory error code.#define ANTLR3_FAIL 1β the failure flag, the flop era of return values.#define ANTLR3_FALSE 0β false, but make it a macro.#define ANTLR3_SUCCESS 0β success, also a macro, also0. Yes it shares a value withANTLR3_FALSE, that's just how it is. π#define ANTLR3_TRUE 1β true, the main character of booleans.#define MEMO_RULE_FAILED 0xFFFFFFFEβ this one's giving "memoizing on a rule did NOT work out".#define MEMO_RULE_UNKNOWN 0xFFFFFFFFβ memoization status unknown.
πΈ Macro Definition Documentation πΈ
β #define ANTLR3_CHARSTREAM_EOF 0xFFFFFFFF
Indicates end of character stream and is an invalid Unicode code point. (yes, both things at once, iconic)
Referenced by antlr38BitLA(), antlr38BitLA_ucase(), antlr3EBCDICLA(), antlr3UTF16LA(), antlr3UTF16LABE(), antlr3UTF16LALE(), antlr3UTF16Seek(), antlr3UTF32LA(), antlr3UTF32LABE(), antlr3UTF32LALE(), antlr3UTF32Seek(), antlr3UTF8LA(), and nextTokenStr().
β #define ANTLR3_ERR_BASE 0
Just the base value. That's it, that's the macro. π
β #define ANTLR3_ERR_HASHDUP (ANTLR3_ERR_BASE + 3)
Referenced by antlr3HashPut(), and antlr3HashPutI().
β #define ANTLR3_ERR_NOFILE (ANTLR3_ERR_BASE + 2)
Referenced by antlr3read8Bit().
β #define ANTLR3_ERR_NOMEM (ANTLR3_ERR_BASE + 1)
Referenced by antlr3EnumNew(), antlr3HashPut(), antlr3HashPutI(), antlr3IntTrieNew(), antlr3ListNew(), antlr3read8Bit(), antlr3StackNew(), and antlr3VectorNew().
β #define ANTLR3_FAIL 1
Referenced by antlr3EnumNext().
β #define ANTLR3_FALSE 0
Bestie this one is everywhere, buckle up π¦ β referenced by alreadyParsedRule(), antlr38BitReuse(), antlr3BaseRecognizerNew(), antlr3BitsetEquals(), antlr3BitsetIsNil(), antlr3BitsetMember(), antlr3CommonTokenDebugStreamSourceNew(), antlr3CommonTokenStreamSourceNew(), antlr3CommonTreeNodeStreamNew(), antlr3CommonTreeNodeStreamNewStream(), antlr3CreateStringStream(), antlr3HashPut(), antlr3HashPutI(), antlr3HashTableNew(), antlr3RecognitionExceptionNew(), antlr3RewriteRuleElementStreamNewAE(), antlr3RewriteRuleElementStreamNewAEV(), antlr3SetVectorApi(), antlr3TopoNew(), antlr3UTF16SetupStream(), antlr3UTF32SetupStream(), antlr3VectorFree(), antlr3VectorResize(), antlr3VectorSwap(), combineFollows(), computeCSRuleFollow(), computeErrorRecoverySet(), consumeInitialHiddenTokens(), consumeUntilSet(), DFS(), fillBuffer(), fillBuffer(), freeNodeRS(), freeRS(), handshake(), hasNext(), intTrieAdd(), intTrieDel(), isLegalUTF8(), isLegalUTF8Sequence(), isNilNode(), match(), matchAny(), matchc(), matchRange(), matchs(), mismatchIsMissingToken(), mismatchIsUnwantedToken(), newPool(), newPool(), newPool(), newToken(), nextTokenStr(), recover(), recoverFromMismatchedElement(), recoverFromMismatchedSet(), recoverFromMismatchedToken(), replaceChildren(), reset(), reset(), setChild(), setDebugListener(), setupInputStream(), sockSend(), sortToArray(), synpred(), toInt32_UTF16(), and toStringTree().
β #define ANTLR3_SUCCESS 0
Referenced by antlr3BitsetList(), antlr3CreateFileStream(), antlr3EnumNext(), antlr3HashPut(), antlr3HashPutI(), and antlr3read8Bit().
β #define ANTLR3_TRUE 1
Another absolute queen of a macro π β referenced by add(), addChild(), addNavigationNode(), alreadyParsedRule(), antlr3BitsetEquals(), antlr3BitsetIsNil(), antlr3BitsetMember(), antlr3BitsetToIntList(), antlr3CommonTreeNodeStreamFree(), antlr3CommonTreeNodeStreamNewStream(), antlr3dfapredict(), antlr3ExceptionFree(), antlr3HashPut(), antlr3HashRemove(), antlr3HashTableNew(), antlr3LexerNew(), antlr3read8Bit(), antlr3RecognitionExceptionNew(), antlr3RewriteRuleElementStreamNewAEV(), antlr3TokenFactoryNew(), antlr3UTF16SetupStream(), antlr3UTF32SetupStream(), antlr3VectorFactoryNew(), antlr3VectorResize(), antlr3VectorSwap(), closeVectorFactory(), combineFollows(), dbgConsume(), dbgLA(), dbgTokLT(), DFS(), expungeRS(), fillBuffer(), freeNodeRS(), freeRS(), getTokensSet(), handshake(), hasNext(), intTrieAdd(), isLegalUTF8(), isNilNode(), match(), matchc(), matchRange(), matchs(), memoize(), mismatchIsMissingToken(), mismatchIsUnwantedToken(), newPool(), newPool(), newPool(), newPoolToken(), newRaw8(), newRawUTF16(), newVector(), nextNode(), nextTokenStr(), noViableAlt(), recoverFromMismatchedElement(), recoverFromMismatchedSet(), recoverFromMismatchedToken(), replaceChildren(), reportError(), reset(), reset(), semanticPredicate(), setupInputStream(), sockSend(), sortToArray(), sortVector(), synpred(), toInt32_UTF16(), and toString().
β #define MEMO_RULE_FAILED 0xFFFFFFFE
Indicates memoizing on a rule failed. sad girl hours fr fr π
Referenced by alreadyParsedRule(), and memoize().
β #define MEMO_RULE_UNKNOWN 0xFFFFFFFF
Referenced by alreadyParsedRule(), and getRuleMemoization().
π§ Author π§
Generated automatically by Doxygen for ANTLR3C from the source code. Not a human, just a very productive robot. π
and that's the whole page, bestie, you ate it π
Version 3.3.1 Β· Tue Jul 29 2025 00:00:00 Β· ANTLR3C Β· include/antlr3errors.h(3) β go forth and #define 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