Improved language parsing and validation. This fixes #58

This commit is contained in:
WerWolv
2020-12-07 23:49:19 +01:00
parent 485761f45c
commit e1e73077a1
3 changed files with 26 additions and 6 deletions

View File

@@ -296,6 +296,7 @@ namespace hex {
auto [parseResult, ast] = parser.parse(tokens);
if (parseResult.failed()) {
this->m_textEditor.SetErrorMarkers({ parser.getError() });
printf("%d %s\n", parser.getError().first, parser.getError().second.c_str());
return;
}