antlr3exception.h - Man Page

Contains the definition of a basic ANTLR3 exception structure created by a recognizer when errors are found/predicted.

Synopsis

#include <antlr3defs.h>

Data Structures

struct ANTLR3_EXCEPTION_struct
Base structure for an ANTLR3 exception tracker.

Macros

#define ANTLR3_EARLY_EXIT_EXCEPTION   5
#define ANTLR3_EARLY_EXIT_NAME   'org.antlr.runtime.EarlyExitException'
#define ANTLR3_FAILED_PREDICATE_EXCEPTION   6
#define ANTLR3_FAILED_PREDICATE_NAME   'org.antlr.runtime.FailedPredicateException'
#define ANTLR3_MISMATCHED_EX_NAME   'org.antlr.runtime.MismatchedTokenException'
Name of ANTLR3_MISMATCHED_TOKEN_EXCEPTION.
#define ANTLR3_MISMATCHED_SET_EXCEPTION   4
#define ANTLR3_MISMATCHED_SET_NAME   'org.antlr.runtime.MismatchedSetException'
#define ANTLR3_MISMATCHED_TOKEN_EXCEPTION   2
Indicates that the recognizer was expecting one token and found a a different one.
#define ANTLR3_MISMATCHED_TREE_NODE_EXCEPTION   7
#define ANTLR3_MISMATCHED_TREE_NODE_NAME   'org.antlr.runtime.MismatchedTreeNodeException'
#define ANTLR3_MISSING_TOKEN_EXCEPTION   10
#define ANTLR3_MISSING_TOKEN_EXCEPTION_NAME   'org.antlr.runtime.MissingTokenException'
#define ANTLR3_NO_VIABLE_ALT_EXCEPTION   3
Recognizer could not find a valid alternative from the input.
#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'
Name of exception ANTLR3_RECOGNITION_EXCEPTION.
#define ANTLR3_RECOGNITION_EXCEPTION   1
Indicates that the recognizer received a token in the input that was not predicted.
#define ANTLR3_REWRITE_EARLY_EXCEPTION   8
#define ANTLR3_REWRITE_EARLY_EXCEPTION_NAME   'org.antlr.runtime.tree.RewriteEarlyExitException'
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION   9
#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.

Detailed Description

Contains the definition of a basic ANTLR3 exception structure created by a recognizer when errors are found/predicted.

Macro Definition Documentation

#define ANTLR3_EARLY_EXIT_EXCEPTION   5

Referenced by displayRecognitionError().

#define ANTLR3_EARLY_EXIT_NAME   'org.antlr.runtime.EarlyExitException'

#define ANTLR3_FAILED_PREDICATE_EXCEPTION   6

#define ANTLR3_FAILED_PREDICATE_NAME   'org.antlr.runtime.FailedPredicateException'

#define ANTLR3_MISMATCHED_EX_NAME   'org.antlr.runtime.MismatchedTokenException'

Name of ANTLR3_MISMATCHED_TOKEN_EXCEPTION.

Referenced by antlr3MTExceptionNew().

#define ANTLR3_MISMATCHED_SET_EXCEPTION   4

Referenced by displayRecognitionError().

#define ANTLR3_MISMATCHED_SET_NAME   'org.antlr.runtime.MismatchedSetException'

#define ANTLR3_MISMATCHED_TOKEN_EXCEPTION   2

Indicates that the recognizer was expecting one token and found a a different one.

Referenced by antlr3MTExceptionNew(), and displayRecognitionError().

#define ANTLR3_MISMATCHED_TREE_NODE_EXCEPTION   7

Referenced by antlr3MTNExceptionNew().

#define ANTLR3_MISMATCHED_TREE_NODE_NAME   'org.antlr.runtime.MismatchedTreeNodeException'

Referenced by antlr3MTNExceptionNew().

#define ANTLR3_MISSING_TOKEN_EXCEPTION   10

Referenced by displayRecognitionError(), mismatch(), recoverFromMismatchedSet(), and recoverFromMismatchedToken().

#define ANTLR3_MISSING_TOKEN_EXCEPTION_NAME   'org.antlr.runtime.MissingTokenException'

Referenced by mismatch(), and recoverFromMismatchedToken().

#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'

Name of ANTLR3_NO_VIABLE_ALT_EXCEPTION.

#define ANTLR3_RECOGNITION_EX_NAME   'org.antlr.runtime.RecognitionException'

Name of exception ANTLR3_RECOGNITION_EXCEPTION.

Referenced by antlr3RecognitionExceptionNew().

#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_NAME   'org.antlr.runtime.tree.RewriteEarlyExitException'

#define ANTLR3_UNWANTED_TOKEN_EXCEPTION   9

Referenced by displayRecognitionError(), mismatch(), and recoverFromMismatchedToken().

#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.

Author

Generated automatically by Doxygen for ANTLR3C from the source code.

Referenced By

The man pages ANTLR3_EARLY_EXIT_EXCEPTION(3), ANTLR3_EARLY_EXIT_NAME(3), ANTLR3_FAILED_PREDICATE_EXCEPTION(3), ANTLR3_FAILED_PREDICATE_NAME(3), ANTLR3_MISMATCHED_EX_NAME(3), ANTLR3_MISMATCHED_SET_EXCEPTION(3), ANTLR3_MISMATCHED_SET_NAME(3), ANTLR3_MISMATCHED_TOKEN_EXCEPTION(3), ANTLR3_MISMATCHED_TREE_NODE_EXCEPTION(3), ANTLR3_MISMATCHED_TREE_NODE_NAME(3), ANTLR3_MISSING_TOKEN_EXCEPTION(3), ANTLR3_MISSING_TOKEN_EXCEPTION_NAME(3), ANTLR3_NO_VIABLE_ALT_EXCEPTION(3), ANTLR3_NO_VIABLE_ALT_NAME(3), ANTLR3_RECOGNITION_EXCEPTION(3), ANTLR3_RECOGNITION_EX_NAME(3), ANTLR3_REWRITE_EARLY_EXCEPTION(3), ANTLR3_REWRITE_EARLY_EXCEPTION_NAME(3), ANTLR3_UNWANTED_TOKEN_EXCEPTION(3) and ANTLR3_UNWANTED_TOKEN_EXCEPTION_NAME(3) are aliases of antlr3exception.h(3).

Tue Feb 27 2024 00:00:00 Version 3.3.1 ANTLR3C