PorygonLang/src/Diagnostics/DiagnosticCode.hpp

32 lines
777 B
C++
Raw Normal View History

2019-05-21 11:56:08 +00:00
#ifndef PORYGONLANG_DIAGNOSTICCODE_HPP
#define PORYGONLANG_DIAGNOSTICCODE_HPP
2019-06-18 14:39:36 +00:00
namespace Porygon::Diagnostics {
enum class DiagnosticCode {
// Lex diagnostics
2019-06-18 17:56:47 +00:00
UnexpectedCharacter,
2019-06-18 14:39:36 +00:00
InvalidStringControlCharacter,
2019-05-22 11:24:28 +00:00
2019-06-18 14:39:36 +00:00
// Parse diagnostics
2019-06-18 17:56:47 +00:00
UnexpectedToken,
2019-05-21 11:56:08 +00:00
2019-06-18 14:39:36 +00:00
// Bind diagnostics
2019-06-18 17:56:47 +00:00
NoBinaryOperationFound,
2019-06-18 14:39:36 +00:00
NoUnaryOperationFound,
CantAssignVariable,
VariableNotFound,
ExpressionIsNotAFunction,
ParameterCountMismatch,
ParameterTypeMismatch,
CantIndex,
InvalidReturnType,
ConditionNotABool,
InvalidTableValueType,
InvalidTypeName,
UserDataFieldNoGetter,
UserDataFieldNoSetter
};
}
2019-05-21 11:56:08 +00:00
#endif //PORYGONLANG_DIAGNOSTICCODE_HPP