Furball-Engine_Furball_Volpe/Furball.Volpe/Exceptions/UnexpectedTokenException.cs
using Furball.Volpe.LexicalAnalysis;

namespace Furball.Volpe.Exceptions; 

public class UnexpectedTokenException : VolpeException
{
    public Token Token { get; }
        
    public UnexpectedTokenException(PositionInText positionInText, Token token) 
        : base(positionInText)
    {
        Token = token;
    }
        
    public override string Description => $"unexpected token {Token.Value.GetType().Name}";
}