2019-05-21 11:56:08 +00:00
|
|
|
|
|
|
|
#ifndef PORYGONLANG_DIAGNOSTICCODE_HPP
|
|
|
|
#define PORYGONLANG_DIAGNOSTICCODE_HPP
|
|
|
|
|
|
|
|
enum class DiagnosticCode{
|
2019-05-22 11:24:28 +00:00
|
|
|
// Lex diagnostics
|
2019-05-21 11:56:08 +00:00
|
|
|
UnexpectedCharacter,
|
2019-05-22 11:24:28 +00:00
|
|
|
InvalidStringControlCharacter,
|
|
|
|
|
|
|
|
// Parse diagnostics
|
2019-05-21 12:00:14 +00:00
|
|
|
UnexpectedToken,
|
2019-05-22 10:22:52 +00:00
|
|
|
|
2019-05-22 11:24:28 +00:00
|
|
|
// Bind diagnostics
|
2019-05-22 10:22:52 +00:00
|
|
|
NoBinaryOperationFound,
|
|
|
|
NoUnaryOperationFound,
|
2019-05-28 15:49:03 +00:00
|
|
|
CantAssignVariable,
|
2019-05-30 13:23:48 +00:00
|
|
|
VariableNotFound,
|
2019-06-01 17:20:31 +00:00
|
|
|
ExpressionIsNotAFunction,
|
|
|
|
ParameterCountMismatch,
|
|
|
|
ParameterTypeMismatch,
|
2019-06-06 15:35:51 +00:00
|
|
|
CantIndex,
|
2019-05-21 11:56:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //PORYGONLANG_DIAGNOSTICCODE_HPP
|