新增UndefinedIdentifiersAsStrings选项并完善变量控制器

This commit is contained in:
2025-10-27 10:50:36 +08:00
parent 971baf8c9e
commit 29dd4f5d96
4 changed files with 129 additions and 68 deletions

View File

@@ -95,6 +95,8 @@ namespace Convention.RScript.Parser
public ExpressionParser(ExpressionContext context)
{
this.context = context;
// 默认启用未定义标识符作为字符串的功能
this.context.Options.UndefinedIdentifiersAsStrings = true;
}
private readonly Dictionary<string, Type> CompileGenericExpressionTypen = new();