Handle if statements

This commit is contained in:
2018-11-13 12:48:50 +01:00
parent e5ac28bacf
commit 1aee448999
15 changed files with 135 additions and 17 deletions

View File

@@ -25,9 +25,9 @@ namespace Upsilon
Log(DiagnosticLevel.Error, message, location);
}
public void LogBadCharacter(TextSpan location)
public void LogBadCharacter(TextSpan location, SyntaxKind expectedToken)
{
LogError($"Invalid character found", location);
LogError($"Invalid character found. Expected: '{expectedToken}'", location);
}
public void LogUnknownVariable(TextSpan span, string variable)