include/antlr3exception.h(3)
okay bestie, gather round, because this one is include/antlr3exception.h, straight out of the ANTLR3C manual β that's section 3 of the library pages, iykyk. it's the header that carries the definition of a basic ANTLR3 exception structure, the thing a recognizer spins up whenever errors get found or predicted. no cap, it's giving β¨error-handling loreβ¨ and honestly? iconic.
πΈ NAME πΈ
include/antlr3exception.h β contains the definition of a basic ANTLR3 exception structure that a recognizer creates when errors are found or predicted. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
#include <antlr3defs.h>
ποΈ Data Structures
struct ANTLR3_EXCEPTION_structβ the base structure for an ANTLR3 exception tracker. it's the blueprint, the foundation, the main character of this whole file π«Ά
π Macros
#define ANTLR3_EARLY_EXIT_EXCEPTION 5
#define ANTLR3_EARLY_EXIT_EXCEPTION 5
#define ANTLR3_EARLY_EXIT_NAME
#define ANTLR3_EARLY_EXIT_NAME 'org.antlr.runtime.EarlyExitException'
#define ANTLR3_FAILED_PREDICATE_EXCEPTION
#define ANTLR3_FAILED_PREDICATE_EXCEPTION 6
#define ANTLR3_FAILED_PREDICATE_NAME
#define ANTLR3_FAILED_PREDICATE_NAME
'org.antlr.runtime.FailedPredicateException'
#define ANTLR3_MISMATCHED_EX_NAME
#define ANTLR3_MISMATCHED_EX_NAME
'org.antlr.runtime.MismatchedTokenException'
it's the name of ANTLR3_MISMATCHED_TOKEN_EXCEPTION. π
#define ANTLR3_MISMATCHED_SET_EXCEPTION 4
#define ANTLR3_MISMATCHED_SET_EXCEPTION 4
#define ANTLR3_MISMATCHED_SET_NAME
#define ANTLR3_MISMATCHED_SET_NAME
'org.antlr.runtime.MismatchedSetException'
#define ANTLR3_MISMATCHED_TOKEN_EXCEPTION 2
#define ANTLR3_MISMATCHED_TOKEN_EXCEPTION 2
indicates that the recognizer was expecting one token and found a completely different one. the audacity, honestly π
#define ANTLR3_MISMATCHED_TREE_NODE_EXCEPTION 7
#define ANTLR3_MISMATCHED_TREE_NODE_EXCEPTION 7
#define ANTLR3_MISMATCHED_TREE_NODE_NAME
#define ANTLR3_MISMATCHED_TREE_NODE_NAME
'org.antlr.runtime.MismatchedTreeNodeException'
#define ANTLR3_MISSING_TOKEN_EXCEPTION 10
#define ANTLR3_MISSING_TOKEN_EXCEPTION 10
#define ANTLR3_MISSING_TOKEN_EXCEPTION_NAME
#define ANTLR3_MISSING_TOKEN_EXCEPTION_NAME
'org.antlr.runtime.MissingTokenException'
#define ANTLR3_NO_VIABLE_ALT_EXCEPTION 3
#define ANTLR3_NO_VIABLE_ALT_EXCEPTION 3
the recognizer could not find a valid alternative from the input. it looked at every option and said "none of these are serving" π
#define ANTLR3_NO_VIABLE_ALT_NAME
#define ANTLR3_NO_VIABLE_ALT_NAME
'org.antlr.runtime.NoViableAltException'
name of ANTLR3_NO_VIABLE_ALT_EXCEPTION. β
#define ANTLR3_RECOGNITION_EX_NAME
#define ANTLR3_RECOGNITION_EX_NAME
'org.antlr.runtime.RecognitionException'
name of exception ANTLR3_RECOGNITION_EXCEPTION.
#define ANTLR3_RECOGNITION_EXCEPTION 1
#define ANTLR3_RECOGNITION_EXCEPTION 1
indicates that the recognizer received a token in the input that was not predicted. surprise token, nobody asked for you π
#define ANTLR3_REWRITE_EARLY_EXCEPTION 8
#define ANTLR3_REWRITE_EARLY_EXCEPTION 8
#define ANTLR3_REWRITE_EARLY_EXCEPTION_NAME
#define ANTLR3_REWRITE_EARLY_EXCEPTION_NAME
'org.antlr.runtime.tree.RewriteEarlyExitException'
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION 9
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION 9
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION_NAME
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION_NAME
'org.antlr.runtime.UnwantedTokenException'
π¦ Typedefs
typedef struct ANTLR3_EXCEPTION_struct ANTLR3_EXCEPTIONβ base structure for an ANTLR3 exception tracker. yeah, it's the same icon as the struct up there, just with a cute little nickname now π
π Detailed Description
contains the definition of a basic ANTLR3 exception structure created by a recognizer when errors are found/predicted. fr fr, that's the whole purpose of this header β it's the exception starter pack.
π₯ Macro Definition Documentation
#define ANTLR3_EARLY_EXIT_EXCEPTION 5
#define ANTLR3_EARLY_EXIT_EXCEPTION 5
referenced by displayRecognitionError(). β¨
#define ANTLR3_EARLY_EXIT_NAME 'org.antlr.runtime.EarlyExitException'
#define ANTLR3_EARLY_EXIT_NAME 'org.antlr.runtime.EarlyExitException'
#define ANTLR3_FAILED_PREDICATE_EXCEPTION 6
#define ANTLR3_FAILED_PREDICATE_EXCEPTION 6
#define ANTLR3_FAILED_PREDICATE_NAME 'org.antlr.runtime.FailedPredicateException'
#define ANTLR3_FAILED_PREDICATE_NAME
'org.antlr.runtime.FailedPredicateException'
#define ANTLR3_MISMATCHED_EX_NAME 'org.antlr.runtime.MismatchedTokenException'
#define ANTLR3_MISMATCHED_EX_NAME
'org.antlr.runtime.MismatchedTokenException'
name of ANTLR3_MISMATCHED_TOKEN_EXCEPTION.
referenced by antlr3MTExceptionNew(). π
#define ANTLR3_MISMATCHED_SET_EXCEPTION 4
#define ANTLR3_MISMATCHED_SET_EXCEPTION 4
referenced by displayRecognitionError().
#define ANTLR3_MISMATCHED_SET_NAME 'org.antlr.runtime.MismatchedSetException'
#define ANTLR3_MISMATCHED_SET_NAME
'org.antlr.runtime.MismatchedSetException'
#define ANTLR3_MISMATCHED_TOKEN_EXCEPTION 2
#define ANTLR3_MISMATCHED_TOKEN_EXCEPTION 2
indicates that the recognizer was expecting one token and found a different one.
referenced by antlr3MTExceptionNew(), and displayRecognitionError().
#define ANTLR3_MISMATCHED_TREE_NODE_EXCEPTION 7
#define ANTLR3_MISMATCHED_TREE_NODE_EXCEPTION 7
referenced by antlr3MTNExceptionNew().
#define ANTLR3_MISMATCHED_TREE_NODE_NAME 'org.antlr.runtime.MismatchedTreeNodeException'
#define ANTLR3_MISMATCHED_TREE_NODE_NAME
'org.antlr.runtime.MismatchedTreeNodeException'
referenced by antlr3MTNExceptionNew().
#define ANTLR3_MISSING_TOKEN_EXCEPTION 10
#define ANTLR3_MISSING_TOKEN_EXCEPTION 10
referenced by displayRecognitionError(), mismatch(), recoverFromMismatchedSet(), and recoverFromMismatchedToken().
#define ANTLR3_MISSING_TOKEN_EXCEPTION_NAME 'org.antlr.runtime.MissingTokenException'
#define ANTLR3_MISSING_TOKEN_EXCEPTION_NAME
'org.antlr.runtime.MissingTokenException'
referenced by mismatch(), and recoverFromMismatchedToken().
#define ANTLR3_NO_VIABLE_ALT_EXCEPTION 3
#define ANTLR3_NO_VIABLE_ALT_EXCEPTION 3
recognizer could not find a valid alternative from the input.
referenced by displayRecognitionError(), and noViableAlt(). π§
#define ANTLR3_NO_VIABLE_ALT_NAME 'org.antlr.runtime.NoViableAltException'
#define ANTLR3_NO_VIABLE_ALT_NAME 'org.antlr.runtime.NoViableAltException'
name of ANTLR3_NO_VIABLE_ALT_EXCEPTION.
#define ANTLR3_RECOGNITION_EX_NAME 'org.antlr.runtime.RecognitionException'
#define ANTLR3_RECOGNITION_EX_NAME
'org.antlr.runtime.RecognitionException'
name of exception ANTLR3_RECOGNITION_EXCEPTION.
referenced by antlr3RecognitionExceptionNew().
#define ANTLR3_RECOGNITION_EXCEPTION 1
#define ANTLR3_RECOGNITION_EXCEPTION 1
indicates that the recognizer received a token in the input that was not predicted.
referenced by antlr3RecognitionExceptionNew(), and displayRecognitionError().
#define ANTLR3_REWRITE_EARLY_EXCEPTION 8
#define ANTLR3_REWRITE_EARLY_EXCEPTION 8
#define ANTLR3_REWRITE_EARLY_EXCEPTION_NAME 'org.antlr.runtime.tree.RewriteEarlyExitException'
#define ANTLR3_REWRITE_EARLY_EXCEPTION_NAME
'org.antlr.runtime.tree.RewriteEarlyExitException'
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION 9
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION 9
referenced by displayRecognitionError(), mismatch(), and recoverFromMismatchedToken().
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION_NAME 'org.antlr.runtime.UnwantedTokenException'
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION_NAME
'org.antlr.runtime.UnwantedTokenException'
referenced by mismatch(), and recoverFromMismatchedToken().
π Typedef Documentation
typedef struct ANTLR3_EXCEPTION_struct ANTLR3_EXCEPTION
base structure for an ANTLR3 exception tracker. yes bestie, it's the same one again β the struct and its typedef are twinning π
π Author
generated automatically by Doxygen for ANTLR3C from the source code. not a human typing this, just a robot doing its little documentation dance π€β¨
and that's the whole page, bestie, no notes, no crumbs π this was the include/antlr3exception.h(3) page from the ANTLR3C manual, sitting pretty at Version 3.3.1 and dated Tue Jul 29 2025 00:00:0. go forth and handle your exceptions, you absolute icon π
π
π¦ 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