EXCEPTIONS_MSG
enum that stores error codes for exceptions
Definition Exceptions.h:109
@ MISSING_VARNAME
Definition Exceptions.h:127
@ OPENINGSCOPE
Definition Exceptions.h:132
@ MISSING_RPAREN_forloop
Definition Exceptions.h:135
@ NULLVARIABLE
Definition Exceptions.h:122
@ VARIABLE_NOTFOUND
Definition Exceptions.h:119
@ INVALID_UNARY_TYPE
Definition Exceptions.h:149
@ NO_MATCHINGTYPE
Definition Exceptions.h:125
@ CANNOT_APPEND_BOOLEANS
Definition Exceptions.h:153
@ EXPECTED__SECOND_and_symbol_
Definition Exceptions.h:110
@ INCORRECT_VARIABLE_DATATYPE
Definition Exceptions.h:147
@ NOT_ALLOWED_CHARACTER
Definition Exceptions.h:123
@ NO_FORLOOP_DECL
Definition Exceptions.h:137
@ UNRECOGNIZABLE_OPERATOR
Definition Exceptions.h:151
@ DIVISION_BY_ZERO
Definition Exceptions.h:150
@ VAR_ALREADY_EXISTS
Definition Exceptions.h:129
@ MISSING_COMMA_SEP
Definition Exceptions.h:141
@ FORLOOP_SEP
Definition Exceptions.h:138
@ MISSING_RPAREN_builtin
Definition Exceptions.h:131
@ INCORRECT_FORLOOP
Definition Exceptions.h:136
@ NULLPTREXCEPTION_INTERPRETER
Definition Exceptions.h:145
@ INCORRECT_APPENDING
Definition Exceptions.h:121
@ MIXING_DATA_TYPES
Definition Exceptions.h:118
@ ATTEMPTED_BOOLEAN_APPEND
Definition Exceptions.h:146
@ INCORRECT_OPERATION
Definition Exceptions.h:148
@ CLOSINGSCOPE
Definition Exceptions.h:133
@ MISSING_LPAREN_builtin
Definition Exceptions.h:130
@ MISSING_ASSINGMENT_OP
Definition Exceptions.h:128
@ EOF__INCOMPLETE__PROGRAM
Definition Exceptions.h:117
@ MAX_FUNC_ARG
Definition Exceptions.h:142
@ NULLPTREXC
Definition Exceptions.h:126
@ MISSING_DATATYPE
Definition Exceptions.h:143
@ INCORRECT_FUNCTIONARG_TYPE
Definition Exceptions.h:144
@ INCORRECT_CONDITIONAL_CHECKER
Definition Exceptions.h:154
@ UNRECOGNIZABLE_WORD_DATATYPE_OPERATOR
Definition Exceptions.h:152
@ EXPECTED__NUM__beforeDOT_
Definition Exceptions.h:114
@ ELSEIF_ELSE_BEFORE_IF_STTMNT
Definition Exceptions.h:115
@ MISSING_LPAREN_forloop
Definition Exceptions.h:134
@ MISSING_RPAREN_function
Definition Exceptions.h:140
@ NULLPTREXCEPTION
Definition Exceptions.h:120
@ MISSING_LPAREN_function
Definition Exceptions.h:139
@ EXPECTED__SECOND_or_symbol_
Definition Exceptions.h:111
@ UNSUPPORTED_TOKEN_IN_PARSER
Definition Exceptions.h:116
@ INVALID_CHAR_INPUT
Definition Exceptions.h:112
@ MISSING_RPAREN
Definition Exceptions.h:124
@ MULTIPLE_DOTS_IN_floatingpoint_
Definition Exceptions.h:113
int lnNum
line where exception was thrown from
Definition Exceptions.h:74
std::string getMessage()
gets the message that was created or stored when the exception was created and thrown
Definition Exceptions.cpp:22
std::string message
stores the message to display when exception is thrown
Definition Exceptions.h:64
std::string filePath
name of the file where exception was thrown from
Definition Exceptions.h:69
std::string createErrorMessage(const int &Error_index)
determines which error message must be thrown depending on the index passed in which corresponds to t...
Definition Exceptions.cpp:33
int current_index
index where exception was thrown from
Definition Exceptions.h:79
std::string number_str
(optional) if an exception was caused by a number, the number which caused an exception to be thrown
Definition Exceptions.h:89
std::string current_char
the character which caused an exception to be thrown
Definition Exceptions.h:84
std::string makeSpaces(const int &length)
makes empty spaces eg ' ', of a specified length and returns a string with these spaces
Definition Exceptions.cpp:24
creates exception objects with a message for the object to display when thrown
Definition Exceptions.h:22