tlang-interperter-cs/tlanglib/TChar.cs

19 lines
341 B
C#

namespace tlang
{
internal class TChar : TObject
{
public override bool AsBoolean => Value != '\0';
public char Value {get;set;}
public TChar(char v)
{
Value = v;
}
public override string ToString()
{
return Value.ToString();
}
}
}