26 #ifndef MU_PARSER_ERROR_H
27 #define MU_PARSER_ERROR_H
108 std::vector<string_type> m_vErrMsg;
109 static const self_type m_Instance;
150 std::size_t
GetPos()
const;
A class that handles the error messages.
Definition: muParserError.h:93
const string_type & GetExpr() const
gets the expression related tp this error.
Definition: muParserError.cpp:292
binary operators may only be applied to value items of the same type
Definition: muParserError.h:65
An unexpected comma has been found. (Example: "1,23")
Definition: muParserError.h:52
Token cant be identified.
Definition: muParserError.h:50
result is a string
Definition: muParserError.h:66
An unexpected argument has been found.
Definition: muParserError.h:53
Division by zero (currently unused)
Definition: muParserError.h:78
~ParserErrorMsg()
Definition: muParserError.cpp:46
Name conflict.
Definition: muParserError.h:74
Internal error of any kind.
Definition: muParserError.h:83
~ParserError()
Definition: muParserError.cpp:242
unterminated string constant. (Example: "3*valueof('hello')")
Definition: muParserError.h:62
Trying to overload builtin operator.
Definition: muParserError.h:70
Undefined message, placeholder to detect unassigned error messages.
Definition: muParserError.h:87
ParserErrorMsg & operator=(const ParserErrorMsg &)
Assignement operator is deactivated.
Definition: muParserError.cpp:52
Unexpected function found. (Example: "sin(8)cos(9)")
Definition: muParserError.h:61
This is no error code, It just stores just the total number of error codes.
Definition: muParserError.h:86
static const ParserErrorMsg & Instance()
Definition: muParserError.cpp:33
ParserErrorMsg()
Definition: muParserError.cpp:63
An unexpected value token has been found.
Definition: muParserError.h:54
Conflict with current locale.
Definition: muParserError.h:80
catch division by zero, sqrt(-1), log(0) (currently unused)
Definition: muParserError.h:77
An unexpected variable token has been found.
Definition: muParserError.h:55
Invalid variable pointer.
Definition: muParserError.h:72
Invalid function, variable or constant name.
Definition: muParserError.h:69
void SetFormula(const string_type &a_strFormula)
Set the expression related to this error.
Definition: muParserError.cpp:285
ParserErrorMsg self_type
Definition: muParserError.h:96
Error class of the parser.
Definition: muParserError.h:119
std::size_t GetPos() const
Return the formula position related to the error.
Definition: muParserError.cpp:309
string_type operator[](unsigned a_iIdx) const
Definition: muParserError.cpp:39
The Expression is empty.
Definition: muParserError.h:73
Too many function parameters.
Definition: muParserError.h:63
A numerical function has been called with a non value type of argument.
Definition: muParserError.h:59
Namespace for mathematical applications.
Definition: muParser.cpp:47
Unexpected end of formula. (Example: "2+sin(")
Definition: muParserError.h:51
Too few function parameters. (Example: "ite(1<2,2)")
Definition: muParserError.h:64
A string function has been called with a different type of argument.
Definition: muParserError.h:58
EErrorCodes GetCode() const
Return the error code.
Definition: muParserError.cpp:323
ParserError()
Default constructor.
Definition: muParserError.cpp:117
string_type::value_type char_type
The character type used by the parser.
Definition: muParserDef.h:240
Unexpected binary operator found.
Definition: muParserError.h:49
MUP_STRING_TYPE string_type
The stringtype used by the parser.
Definition: muParserDef.h:228
#define _T
Definition: muParserDef.h:62
Invalid operator priority.
Definition: muParserError.h:75
Unexpected Parenthesis, opening or closing.
Definition: muParserError.h:56
Invalid callback function pointer.
Definition: muParserError.h:71
EErrorCodes
Error codes.
Definition: muParserError.h:46
Generic error.
Definition: muParserError.h:79
const string_type & GetToken() const
Return string related with this token (if available).
Definition: muParserError.cpp:316
Missing parens. (Example: "3*sin(3")
Definition: muParserError.h:60
const string_type & GetMsg() const
Returns the message string for this error.
Definition: muParserError.cpp:299
A string has been found at an inapropriate position.
Definition: muParserError.h:57
ParserError & operator=(const ParserError &a_Obj)
Assignment operator.
Definition: muParserError.cpp:228
This file contains standard definitions used by the parser.