Created
December 23, 2017 04:00
-
-
Save kogai/af6d272fddf526e9b2663da9986f39cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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 open Printf in | |
| let open Ast in | |
| let open Eval.Environment in | |
| let x = empty in | |
| let inf = create_info "file" 0 0 in | |
| set x (TermVar (inf, "x")) "my-x"; | |
| set x (TermVar (inf, "y")) "my-y"; | |
| printf "%s\n" @@ show x; | |
| let y = create (Some x) in | |
| set y (TermVar (inf, "x")) "my-x"; | |
| set y (TermVar (inf, "y")) "my-y"; | |
| printf "%s\n" @@ show y; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment