Error Fixes

- Lexer discarding all newlines (now replaces it with spaces)
- Cleanup of Type check and remove function in parser
- Cleanup in Compiler.cs
This commit is contained in:
Clemens-Dautermann 2020-08-17 23:26:53 +02:00
parent 4e4b31be3f
commit d0c844972d
8 changed files with 198 additions and 146 deletions

View file

@ -0,0 +1,15 @@
using System;
using Compiler.Lexer;
namespace Compiler.Parser.Exceptions
{
public class MissingTokenException : Exception
{
public override string Message { get; }
public MissingTokenException(TokenType expected)
{
this.Message = "Expected Token " + expected + " missing.";
}
}
}