2025-12-25 22:37:40 +11:00
|
|
|
#ifndef ERROR_H
|
|
|
|
|
#define ERROR_H
|
|
|
|
|
|
2025-12-24 13:15:48 +11:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace Solstice {
|
|
|
|
|
namespace Error {
|
2025-12-26 13:28:47 +11:00
|
|
|
void syntaxError(std::string what, int line = 0, std::string lineContent = "");
|
|
|
|
|
void typingError(std::string what, int line = 0, std::string lineContent = "");
|
|
|
|
|
void summariseErrors();
|
|
|
|
|
extern int amountOfErrors;
|
2025-12-24 13:15:48 +11:00
|
|
|
}
|
|
|
|
|
}
|
2025-12-25 22:37:40 +11:00
|
|
|
|
2025-12-26 13:28:47 +11:00
|
|
|
#endif
|