Skip to content

Commit

Permalink
Add parameters to the scope-checker
Browse files Browse the repository at this point in the history
  • Loading branch information
ShunyaoLiang authored and IlmariReissumies committed Mar 27, 2024
1 parent 751d522 commit 77aba46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pancake/panScopeScript.sml
Expand Up @@ -95,8 +95,8 @@ End

Definition scope_check_funs_def:
scope_check_funs fnames [] = NONE
scope_check_funs fnames ((fname, _, body)::funs) =
let ctxt = <| vars := [] ; funcs := fnames ; fname := fname |> in
scope_check_funs fnames ((fname, vshapes, body)::funs) =
let ctxt = <| vars := MAP FST vshapes ; funcs := fnames ; fname := fname |> in
OPTION_CHOICE (scope_check_prog ctxt body)
(scope_check_funs fnames funs)
End
Expand Down

0 comments on commit 77aba46

Please sign in to comment.