comparison tests/ffi.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/ffi.lac@d37518b67bd2
children
comparison
equal deleted inserted replaced
243:2b9dfaffb008 244:71bafe66dbe1
1 extern structure Lib : sig
2 type t
3 type u
4 val x : t
5 val y : u
6 val f0 : {} -> u
7 val f1 : t -> t
8 val f2 : t -> u -> t
9 end
10
11 type t' = Lib.t
12 val x' : t' = Lib.x
13 val f0' = Lib.f0
14 val f1' = Lib.f1
15 val f2' = Lib.f2
16
17 structure Lib' = Lib
18
19 type t'' = Lib'.t
20 val x'' : t'' = Lib'.x
21
22 val main = f2' (f1' x') (f0' {})