|
Grammatica
|
A parser creation exception. More...
Public Types | |
| enum | ErrorType { ErrorType.INTERNAL, ErrorType.INVALID_PARSER, ErrorType.INVALID_TOKEN, ErrorType.INVALID_PRODUCTION, ErrorType.INFINITE_LOOP, ErrorType.INHERENT_AMBIGUITY } |
| The error type enumeration. More... | |
Public Member Functions | |
| ParserCreationException (ErrorType type, String info) | |
| Creates a new parser creation exception. More... | |
| ParserCreationException (ErrorType type, String name, String info) | |
| Creates a new parser creation exception. More... | |
| ParserCreationException (ErrorType type, String name, String info, ArrayList details) | |
| Creates a new parser creation exception. More... | |
| ErrorType | GetErrorType () |
| Returns the error type. More... | |
| string | GetName () |
| Returns the token or production name. More... | |
| string | GetInfo () |
| Returns the additional error information. More... | |
| string | GetDetails () |
| Returns the detailed error information as a string. More... | |
| string | GetMessage () |
| Returns the error message. More... | |
Properties | |
| ErrorType | Type [get] |
| The error type property (read-only). More... | |
| string | Name [get] |
| The token or production name property (read-only). More... | |
| string | Info [get] |
| The additional error information property (read-only). More... | |
| string | Details [get] |
| The detailed error information property (read-only). More... | |
| override string | Message [get] |
| The message property (read-only). More... | |
A parser creation exception.
This exception is used for signalling an error in the token or production patterns, making it impossible to create a working parser or tokenizer.
The error type enumeration.
|
inline |
Creates a new parser creation exception.
| type | the parse error type |
| info | the additional error information |
|
inline |
Creates a new parser creation exception.
| type | the parse error type |
| name | the token or production pattern name |
| info | the additional error information |
|
inline |
Creates a new parser creation exception.
| type | the parse error type |
| name | the token or production pattern name |
| info | the additional error information |
| details | the error details list |
|
inline |
Returns the detailed error information as a string.
|
inline |
Returns the error type.
|
inline |
Returns the additional error information.
|
inline |
Returns the error message.
This message will contain all the information available.
|
inline |
Returns the token or production name.
|
get |
The detailed error information property (read-only).
|
get |
The additional error information property (read-only).
|
get |
The message property (read-only).
This property contains the detailed exception error message.
|
get |
The token or production name property (read-only).
|
get |
The error type property (read-only).
1.8.9.1