Moved register state to scopes

This commit is contained in:
2024-07-16 15:30:28 +02:00
parent d1ccd60139
commit d6d018c5c5
22 changed files with 230 additions and 129 deletions

View File

@ -18,7 +18,7 @@ func (f *Function) CompileIf(branch *ast.If) error {
}
f.AddLabel(success)
f.pushScope()
f.pushScope(branch.Body)
err = f.CompileAST(branch.Body)
f.popScope()
f.AddLabel(fail)