WIP type-checking
[tiger.ml.git] / compiler / src / lib / tiger / tiger_env_type.mli
... / ...
CommitLineData
1type unique
2
3type t =
4 | Unit
5 | Nil
6 | Int
7 | String
8 | Record of
9 { unique : unique
10 ; fields : record_fields
11 }
12 | Array of
13 { unique : unique
14 ; ty : t
15 }
16 | Name of Tiger_symbol.t * t option ref
17and record_fields =
18 (Tiger_symbol.t * t) list
19
20type env =
21 (Tiger_symbol.t, t ) Tiger_map.t
22
23val built_in : env
24
25val is_equal : t -> t -> bool
26
27val is_int : t -> bool
28val is_string : t -> bool
29val is_array : t -> bool
30val is_record : t -> bool
31val is_name : t -> bool
32
33val if_record : t -> f:(record_fields -> 'a) -> otherwise:(unit -> 'a) -> 'a
34
35val new_record : record_fields -> t
36val new_array : t -> t
37
38val to_string : t -> string
This page took 0.022097 seconds and 4 git commands to generate.