Last active
June 14, 2019 07:47
-
-
Save kaisugi/be8d47b6f1cab58178d4d47a971fb60d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* デバッグ用 *) | |
let rec print_env env = | |
match env with | |
| (x, v) :: rest -> (print_string (x^"="); print_value v; print_string " "; (print_env rest)) | |
| _ -> print_string "\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* デバッグ用 *) | |
let rec print_tyenv tyenv = | |
match tyenv with | |
| (x, t) :: rest -> (print_string (x^"="); print_type t; print_string " "; (print_tyenv rest)) | |
| _ -> print_string "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment