Files
PorygonLang/src/Diagnostics/DiagnosticCode.hpp
Deukhoofd 8541085b27
All checks were successful
continuous-integration/drone/push Build is passing
Added support for full error messages
2019-06-18 19:56:47 +02:00

32 lines
777 B
C++

#ifndef PORYGONLANG_DIAGNOSTICCODE_HPP
#define PORYGONLANG_DIAGNOSTICCODE_HPP
namespace Porygon::Diagnostics {
enum class DiagnosticCode {
// Lex diagnostics
UnexpectedCharacter,
InvalidStringControlCharacter,
// Parse diagnostics
UnexpectedToken,
// Bind diagnostics
NoBinaryOperationFound,
NoUnaryOperationFound,
CantAssignVariable,
VariableNotFound,
ExpressionIsNotAFunction,
ParameterCountMismatch,
ParameterTypeMismatch,
CantIndex,
InvalidReturnType,
ConditionNotABool,
InvalidTableValueType,
InvalidTypeName,
UserDataFieldNoGetter,
UserDataFieldNoSetter
};
}
#endif //PORYGONLANG_DIAGNOSTICCODE_HPP