ANTLR3C  3.3.1
antlr3exception.h File Reference

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

#include <antlr3defs.h>
Include dependency graph for antlr3exception.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  ANTLR3_EXCEPTION_struct
 Base structure for an ANTLR3 exception tracker. More...

Defines

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


Define Documentation

#define ANTLR3_EARLY_EXIT_NAME   "org.antlr.runtime.EarlyExitException"
#define ANTLR3_FAILED_PREDICATE_NAME   "org.antlr.runtime.FailedPredicateException"
#define ANTLR3_MISMATCHED_EX_NAME   "org.antlr.runtime.MismatchedTokenException"
#define ANTLR3_MISMATCHED_SET_NAME   "org.antlr.runtime.MismatchedSetException"

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

Referenced by antlr3MTExceptionNew(), and displayRecognitionError().

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

Referenced by antlr3MTNExceptionNew().

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

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_RECOGNITION_EX_NAME   "org.antlr.runtime.RecognitionException"

Indicates that the recognizer received a token in the input that was not predicted.

Referenced by antlr3RecognitionExceptionNew(), and displayRecognitionError().

#define ANTLR3_REWRITE_EARLY_EXCEPTION_NAME   "org.antlr.runtime.tree.RewriteEarlyExitException"
#define ANTLR3_UNWANTED_TOKEN_EXCEPTION_NAME   "org.antlr.runtime.UnwantedTokenException"

Typedef Documentation

Base structure for an ANTLR3 exception tracker.