17 lines
417 B
C#
17 lines
417 B
C#
|
namespace tlang
|
||
|
{
|
||
|
public class ScopeNode : Node
|
||
|
{
|
||
|
public List<Node> Body {get;set;}= new List<Node>();
|
||
|
public override TObject Execute(IScopeEnvironment nodeEnv)
|
||
|
{
|
||
|
var sub = nodeEnv.SubEnv;
|
||
|
TObject obj=new TNull();
|
||
|
foreach(var item in Body)
|
||
|
{
|
||
|
obj=item.Execute(sub);
|
||
|
}
|
||
|
return obj;
|
||
|
}
|
||
|
}
|
||
|
}
|