antlr3exception (3) - Linux Manuals

NAME

include/antlr3exception.h -

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.

Defines


#define ANTLR3_EARLY_EXIT_EXCEPTION 5

#define ANTLR3_EARLY_EXIT_NAME 'Early exit'

#define ANTLR3_FAILED_PREDICATE_EXCEPTION 6

#define ANTLR3_FAILED_PREDICATE_NAME 'Predicate failed!'

#define ANTLR3_MISMATCHED_EX_NAME 'Mismatched Token Exception'
Name of ANTLR3_MISMATCHED_TOKEN_EXCEPTION.
#define ANTLR3_MISMATCHED_SET_EXCEPTION 4

#define ANTLR3_MISMATCHED_SET_NAME 'Mismatched set'

#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 'Mismatched tree node!'

#define ANTLR3_MISSING_TOKEN_EXCEPTION 10

#define ANTLR3_MISSING_TOKEN_EXCEPTION_NAME 'Missing token'

#define ANTLR3_NO_VIABLE_ALT_EXCEPTION 3
Recognizer could not find a valid alternative from the input.
#define ANTLR3_NO_VIABLE_ALT_NAME 'No Viable Alt'
Name of ANTLR3_NO_VIABLE_ALT_EXCEPTION.
#define ANTLR3_RECOGNITION_EX_NAME 'Recognition Exception'
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 'Mismatched tree node!'

#define ANTLR3_UNWANTED_TOKEN_EXCEPTION 9

#define ANTLR3_UNWANTED_TOKEN_EXCEPTION_NAME 'Extraneous token'

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_EXCEPTION 5

Referenced by displayRecognitionError().

#define ANTLR3_EARLY_EXIT_NAME 'Early exit'

#define ANTLR3_FAILED_PREDICATE_EXCEPTION 6

#define ANTLR3_FAILED_PREDICATE_NAME 'Predicate failed!'

#define ANTLR3_MISMATCHED_EX_NAME 'Mismatched Token Exception'

Name of ANTLR3_MISMATCHED_TOKEN_EXCEPTION.

Referenced by antlr3MTExceptionNew().

#define ANTLR3_MISMATCHED_SET_EXCEPTION 4

Referenced by displayRecognitionError().

#define ANTLR3_MISMATCHED_SET_NAME 'Mismatched set'

#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 'Mismatched tree node!'

Referenced by antlr3MTNExceptionNew().

#define ANTLR3_MISSING_TOKEN_EXCEPTION 10

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

#define ANTLR3_MISSING_TOKEN_EXCEPTION_NAME 'Missing token'

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 'No Viable Alt'

Name of ANTLR3_NO_VIABLE_ALT_EXCEPTION.

#define ANTLR3_RECOGNITION_EX_NAME 'Recognition Exception'

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 'Mismatched tree node!'

#define ANTLR3_UNWANTED_TOKEN_EXCEPTION 9

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

#define ANTLR3_UNWANTED_TOKEN_EXCEPTION_NAME 'Extraneous token'

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.