tlang-runtime-compiler/TLang.VM/TBool.cs

18 lines
383 B
C#
Raw Normal View History

2023-07-30 07:55:10 +00:00
namespace TLang.VM
{
public class TBool : TObject
{
public override string Type => "bool";
public override bool True => Value;
public bool Value {get;set;}
public TBool(bool value)
{
Value = value;
}
public override string ToString()
{
return Value ? "true" : "false";
}
}
}