KumiScript/reader/StringToken.cs

23 lines
461 B
C#
Raw Normal View History

2024-01-26 05:37:51 +00:00
using KumiScript.Interpreter;
namespace KumiScript.Reader
{
public class StringToken : AtomToken
{
readonly string _value;
public StringToken(string value) : base (value)
{
_value = value;
}
public override Expression ToExpression()
{
return new StringExpression(_value);
}
public override string GetValue()
{
return _value;
}
}
}