tlang-interperter-cs/tlanglib/ClosureNode.cs

26 lines
525 B
C#
Raw Normal View History

2023-03-10 10:12:36 +00:00
using System.Collections.Generic;
2023-06-08 18:14:35 +00:00
using System.IO;
2023-03-10 10:12:36 +00:00
2023-03-09 19:40:14 +00:00
namespace tlang
{
2023-06-08 18:14:35 +00:00
2023-03-09 19:40:14 +00:00
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);
}
2023-06-08 18:14:35 +00:00
2023-03-09 19:40:14 +00:00
}
}