Handle if statements
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user