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,
|
2019-06-22 15:35:33 +00:00
|
|
|
UserDataFieldNoSetter,
|
2019-06-26 14:19:34 +00:00
|
|
|
NumericalForArgumentNotANumber,
|
|
|
|
CantIterateExpression
|
2019-06-18 14:39:36 +00:00
|
|
|
};
|
|
|
|
}
|
2019-05-21 11:56:08 +00:00
|
|
|
#endif //PORYGONLANG_DIAGNOSTICCODE_HPP
|