Define the environments (for types and values)
[tiger.ml.git] / compiler / src / lib / tiger / tiger_env_type.mli
CommitLineData
c0bdf964
SK
1type unique
2
3type t =
4 | Unit
5 | Nil
6 | Int
7 | String
8 | Record of
9 { unique : unique
10 ; fields : (Tiger_symbol.t * t) list
11 }
12 | Array of
13 { unique : unique
14 ; ty : t
15 }
16 | Name of Tiger_symbol.t * t option ref
17
18type env =
19 (Tiger_symbol.t, t ) Tiger_map.t
20
21val built_in : env
22
23val is_equal : t -> t -> bool
24val is_record : t -> bool
25val is_int : t -> bool
26val is_name : t -> bool
27
28val new_record : (Tiger_symbol.t * t) list -> t
29val new_array : t -> t
30
31val to_string : t -> string
This page took 0.026769 seconds and 4 git commands to generate.