tlang-interperter-cs/ConstNode.cs

17 lines
313 B
C#

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