include/antlr3errors.h(3)

πŸ“¦ version 3.4, in fedora 43

πŸ’– 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, also 0. Yes it shares a value with ANTLR3_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