mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 08:10:47 +08:00
重写了Script的解释器代码,使其更加直观。重写了流程控制的部分代码,分离运行环境IOC与流程IOC。
This commit is contained in:
@@ -10,6 +10,9 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Serein.Script
|
||||
{
|
||||
|
||||
|
||||
|
||||
public class SereinScript
|
||||
{
|
||||
/// <summary>
|
||||
@@ -47,7 +50,7 @@ namespace Serein.Script
|
||||
}
|
||||
Dictionary<ASTNode, Type> symbolInfos = TypeAnalysis.NodeSymbolInfos.ToDictionary();
|
||||
SereinScriptInterpreter Interpreter = new SereinScriptInterpreter(symbolInfos);
|
||||
return await Interpreter.InterpretAsync(context, programNode);
|
||||
return await Interpreter.InterpreterAsync(context, programNode);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user