KumiScript/parser/StringToken.cs
2024-01-25 23:37:51 -06:00

23 lines
No EOL
461 B
C#

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;
}
}
}