Implement defining functions

This commit is contained in:
2018-11-15 15:51:05 +01:00
parent 58b5a7355e
commit 07660b6c46
17 changed files with 266 additions and 16 deletions

View File

@@ -25,6 +25,11 @@ namespace Upsilon
Log(DiagnosticLevel.Error, message, location);
}
public void LogBadCharacter(TextSpan location, SyntaxKind expectedToken, SyntaxKind currentKind)
{
LogError($"Invalid character found. Expected: '{expectedToken}', Got: '{currentKind}'", location);
}
public void LogBadCharacter(TextSpan location, SyntaxKind expectedToken)
{
LogError($"Invalid character found. Expected: '{expectedToken}'", location);