sequence.mli 811 Bytes
Newer Older
1
val nil_type: Types.descr
2
val nil_atom: Atoms.v
3
4
val any: Types.descr
val seqseq: Types.descr
5
val string: Types.descr
6
7
8
9

val concat: Types.descr -> Types.descr -> Types.descr
val flatten: Types.descr -> Types.descr
val map: (Types.descr -> Types.descr) -> Types.descr -> Types.descr
10

11
12
13
val map_tree: 
  (Types.descr -> Types.descr * Types.descr) -> Types.descr -> Types.descr
 (* input type -> (result, residual) *)         (* sequence type *)
14
15
16

val star: Types.descr -> Types.descr
  (* For a type t, returns [t*] *)
17
val plus: Types.descr -> Types.descr
18
19
20
21
22
23
24
25

val approx: Types.descr -> Types.descr
  (*  For a type t <= [Any*], returns the least type s such that:
      t <= [s*]
      
      In general, for an arbitrary type, returns the least type s such that:
      t <= (X where X = (s, X) |  Any \ (Any,Any))
  *)