- Lexer discarding all newlines (now replaces it with spaces) - Cleanup of Type check and remove function in parser - Cleanup in Compiler.cs
15 lines
No EOL
375 B
C#
15 lines
No EOL
375 B
C#
using System;
|
|
using Compiler.Lexer;
|
|
|
|
namespace Compiler.Parser.Exceptions
|
|
{
|
|
public class UnexpectedTokenException : Exception
|
|
{
|
|
public override string Message { get; }
|
|
|
|
public UnexpectedTokenException(TokenType expected, TokenType got)
|
|
{
|
|
this.Message = "Unexpected Token " + got + ", expected: " + expected + ".";
|
|
}
|
|
}
|
|
} |