EP RScript/修复遗漏
This commit is contained in:
Submodule Convention/[RScript] updated: 15bdb6f8db...97a6e4d76b
@@ -23,14 +23,17 @@ public class Program
|
|||||||
};
|
};
|
||||||
var result = engine.Run(@"
|
var result = engine.Run(@"
|
||||||
int i= 2;
|
int i= 2;
|
||||||
|
int count = 0;
|
||||||
label(test);
|
label(test);
|
||||||
goto(true,func1);
|
goto(true,func1);
|
||||||
|
Func(i);
|
||||||
goto(100>i,test);
|
goto(100>i,test);
|
||||||
|
|
||||||
namespace(func1)
|
namespace(func1)
|
||||||
{
|
{
|
||||||
i = Pow(i,2);
|
i = Pow(i,2);
|
||||||
Func(i);
|
count = count + 1;
|
||||||
|
Func(count);
|
||||||
}
|
}
|
||||||
", import);
|
", import);
|
||||||
Console.WriteLine($"Script executed successfully. Result: {result["i"].data}");
|
Console.WriteLine($"Script executed successfully. Result: {result["i"].data}");
|
||||||
|
Reference in New Issue
Block a user