3#ifndef JAVACC_PARSE_EXCEPTION_H
4#define JAVACC_PARSE_EXCEPTION_H
31 int** expectedTokenSequencesVal,
JAVACC_STRING_TYPE JJString
ParseException(const JJString &message)
Constructor with message.
ParseException(Token currentTokenVal, int **expectedTokenSequencesVal, JJString *tokenImageVal)
This constructor is used by the method "generateParseException" in the generated parser.
int ** expectedTokenSequences
Each entry in this array is an array of integers.
JJString add_escapes(const JJString &str)
Used to convert raw characters to their escaped version when these raw version cannot be used as part...
JJString initialise(Token currentToken, int **expectedTokenSequences, JJString *tokenImage)
It uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it.
ParseException()
The following constructors are for use by you for whatever purpose you can think of.
Token currentToken
This is the last token that has been consumed successfully.
JJString * tokenImage
This is a reference to the "tokenImage" array of the generated parser within which the parse error oc...
Describes the input token stream.
Token literal values and constants.