PorygonLang/src/Diagnostics/DiagnosticCode.hpp

31 lines
654 B
C++
Raw Normal View History

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,
VariableNotFound,
ExpressionIsNotAFunction,
ParameterCountMismatch,
ParameterTypeMismatch,
CantIndex,
2019-06-07 13:23:13 +00:00
InvalidReturnType,
ConditionNotABool,
2019-06-09 18:15:09 +00:00
InvalidTableValueType,
InvalidTypeName,
UserDataFieldNoGetter,
UserDataFieldNoSetter
2019-05-21 11:56:08 +00:00
};
#endif //PORYGONLANG_DIAGNOSTICCODE_HPP