tlang-interperter-cs/ConstNode.cs

17 lines
313 B
C#
Raw Normal View History

2023-03-09 19:40:14 +00:00
namespace tlang
{
internal class ConstNode : Node
{
public TObject Value {get;set;}
public ConstNode(TObject value)
{
this.Value= value;
}
public override TObject Execute(IScopeEnvironment nodeEnv)
{
return Value;
}
}
}