Implements basic virtprop parsing.

This commit is contained in:
2020-10-31 19:23:15 +01:00
parent 6a0ec63a7e
commit 823b00777e
6 changed files with 199 additions and 29 deletions

View File

@@ -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);
}