This commit is contained in:
Michael Schimmel
2026-01-04 18:59:16 +01:00
parent 991b998cb1
commit 2a7e6626ad
5 changed files with 221 additions and 3 deletions
+3 -1
View File
@@ -249,7 +249,9 @@ var
RootScope: IExecutionScope;
begin
// Initialize root scope with library registration
RootScope := TAst.CreateScope(nil, nil, True);
RootScope := Scope;
if RootScope = nil then
RootScope := TAst.CreateScope(nil, nil, True);
Result.Create(TEnvironment.Create(RootScope, TMacroRegistry.Create(nil), TStandardExecutionStrategy.Create));
end;