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

18 lines
383 B
C#

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