include/antlr3exception.h(3)

πŸ“¦ version 3.4, in fedora 43

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