This commit is contained in:
Jordan Wages 2025-06-12 04:32:18 -05:00
commit eb3bbcb69e
6 changed files with 134 additions and 21 deletions

View file

@ -9,7 +9,22 @@ namespace csmic
{
public class FunctionValue
{
public required csmic.ValueType Type { get; set; }
public ValueType Type { get; set; }
public object? Value { get; set; }
public static readonly FunctionValue TRUE = new FunctionValue(ValueType.Numeric, 1);
public static readonly FunctionValue FALSE = new FunctionValue(ValueType.Numeric, 0);
public FunctionValue()
{
this.Type = ValueType.None;
this.Value = null;
}
public FunctionValue(ValueType type, object? value)
{
this.Type = type;
this.Value = value;
}
}
}