23 lines
No EOL
481 B
C#
23 lines
No EOL
481 B
C#
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();
|
|
}
|
|
}
|
|
} |