tlang-interperter-cs/tlanglib/ClosureNode.cs

26 lines
525 B
C#

using System.Collections.Generic;
using System.IO;
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);
}
}
}