KumiScript/reader/SpecialToken.cs

23 lines
481 B
C#
Raw Normal View History

2024-01-26 05:37:51 +00:00
using KumiScript.Interpreter;
namespace KumiScript.Reader
{
public class SpecialToken : Token
{
public readonly char _value;
public SpecialToken(char value)
{
_value = value;
}
public override Expression Accept(ITokenVisitor tokenVisitor)
{
return tokenVisitor.VisitSpecial(this);
}
public override string GetValue()
{
return _value.ToString();
}
}
}