26 #ifndef MU_PARSER_ERROR_H
27 #define MU_PARSER_ERROR_H
86 ecUNEXPECTED_CONDITIONAL = 32,
87 ecMISSING_ELSE_CLAUSE = 33,
88 ecMISPLACED_COLON = 34,
90 ecUNREASONABLE_NUMBER_OF_COMPUTATIONS = 35,
118 std::vector<string_type> m_vErrMsg;
119 static const self_type m_Instance;
A class that handles the error messages.
const string_type & GetExpr() const
gets the expression related tp this error.
binary operators may only be applied to value items of the same type
An unexpected comma has been found. (Example: "1,23")
Token cant be identified.
An unexpected argument has been found.
Division by zero (currently unused)
Internal error of any kind.
unterminated string constant. (Example: "3*valueof("hello)")
Trying to overload builtin operator.
Undefined message, placeholder to detect unassigned error messages.
ParserErrorMsg & operator=(const ParserErrorMsg &)
Assignement operator is deactivated.
Unexpected function found. (Example: "sin(8)cos(9)")
This is no error code, It just stores just the total number of error codes.
An unexpected value token has been found.
Conflict with current locale.
catch division by zero, sqrt(-1), log(0) (currently unused)
An unexpected variable token has been found.
Invalid variable pointer.
Invalid function, variable or constant name.
void SetFormula(const string_type &a_strFormula)
Set the expression related to this error.
Error class of the parser.
Too many function parameters.
A numerical function has been called with a non value type of argument.
Namespace for mathematical applications.
Unexpected end of formula. (Example: "2+sin(")
Too few function parameters. (Example: "ite(1<2,2)")
A string function has been called with a different type of argument.
EErrorCodes GetCode() const
Return the error code.
ParserError()
Default constructor.
string_type::value_type char_type
The character type used by the parser.
int GetPos() const
Return the formula position related to the error.
Unexpected binary operator found.
MUP_STRING_TYPE string_type
The stringtype used by the parser.
Invalid operator priority.
Unexpected Parenthesis, opening or closing.
Invalid function, variable or constant name.
Invalid callback function pointer.
const string_type & GetToken() const
Return string related with this token (if available).
Missing parens. (Example: "3*sin(3")
const string_type & GetMsg() const
Returns the message string for this error.
A string has been found at an inapropriate position.
Invalid function, variable or constant name.
ParserError & operator=(const ParserError &a_Obj)
Assignment operator.
Invalid binary operator identifier.
This file contains standard definitions used by the parser.