tlang-interperter-cs/ClosureNode.cs

20 lines
460 B
C#
Raw Normal View History

2023-03-09 19:40:14 +00:00
namespace tlang
{
public class ClosureNode : Node
{
//j=func(a,b,c,d) 4
public ClosureNode(List<string> args,Node node)
{
Arguments = args;
Node=node;
}
public Node Node {get;set;}
public List<string> Arguments {get;set;}
public override TObject Execute(IScopeEnvironment nodeEnv)
{
return new TInternalMethod(this,nodeEnv);
}
}
}