Implements basic virtprop parsing.
This commit is contained in:
@@ -8,6 +8,7 @@ namespace MalachScript::Diagnostics {
|
||||
InvalidNumericalBase,
|
||||
ExpectedEndOfString,
|
||||
UnexpectedToken,
|
||||
DoubleProperty,
|
||||
};
|
||||
|
||||
class DiagnosticTypeHelper {
|
||||
@@ -17,6 +18,7 @@ namespace MalachScript::Diagnostics {
|
||||
case DiagnosticType::InvalidNumericalBase: return "Invalid numerical base";
|
||||
case DiagnosticType::ExpectedEndOfString: return "Expected end of string";
|
||||
case DiagnosticType::UnexpectedToken: return "Unexpected Token";
|
||||
case DiagnosticType::DoubleProperty: return "Property block found twice.";
|
||||
}
|
||||
return std::to_string((uint8_t)type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user