PorygonLang/src/Diagnostics/DiagnosticCode.hpp

32 lines
801 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
UnexpectedCharacter,
InvalidStringControlCharacter,
2019-05-22 11:24:28 +00:00
2019-06-18 14:39:36 +00:00
// Parse diagnostics
UnexpectedToken,
2019-05-21 11:56:08 +00:00
2019-06-18 14:39:36 +00:00
// Bind diagnostics
NoBinaryOperationFound,
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