-
Notifications
You must be signed in to change notification settings - Fork 0
/
nouvar-expr.sml
23 lines (20 loc) · 914 Bytes
/
nouvar-expr.sml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
structure NoUVar = struct
open Util
type 'bsort uvar_bs = empty
type ('bsort, 'idx) uvar_i = empty
type ('bsort, 'sort) uvar_s = empty
type ('sort, 'kind, 'mtype) uvar_mt = empty
fun str_uvar_bs _ (u : 'a uvar_bs) = exfalso u
fun str_uvar_i _ (u : ('bsort, 'idx) uvar_i) = exfalso u
fun str_uvar_s _ (u : ('bsort, 'sort) uvar_s) = exfalso u
fun str_uvar_mt _ (u : ('sort, 'kind, 'mtype) uvar_mt) = exfalso u
fun eq_uvar_bs (u : 'bsort uvar_bs, _) = exfalso u
fun eq_uvar_i (u : ('bsort, 'idx) uvar_i, _) = exfalso u
fun eq_uvar_s (u : ('bsort, 'sort) uvar_s, _) = exfalso u
fun eq_uvar_mt (u : ('sort, 'kind, 'mtype) uvar_mt, _) = exfalso u
end
structure NoUVarExpr = IdxTypeExprFn (type v = int
structure UVarI = NoUVar
structure UVarT = NoUVar
type ptrn_constr_tag = int * int
)