scope_analysis: small logic fix
All checks were successful
ci/woodpecker/push/debian Pipeline was successful
ci/woodpecker/push/fedora Pipeline was successful
ci/woodpecker/push/nix Pipeline was successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
2026-02-28 18:41:02 +03:00
parent 24db34db62
commit a95a676cb2

View File

@@ -133,4 +133,4 @@ let convert program =
| (Define (s, e)) :: rest ->
let tbl = SymbolTable.add s (id ()) tbl in
(analyze tbl [] e) :: (aux tbl rest)
in aux SymbolTable.empty program
in traverse (fun x -> x) (aux SymbolTable.empty program)