sequence.mli 882 Bytes
Newer Older
1
2
val nil_type: Types.t
val nil_node: Types.Node.t
3
val nil_atom: Atoms.V.t
4
val nil_cst:  Types.Const.t
5
6
7
val any: Types.t
val seqseq: Types.t
val string: Types.t
8

9
10
11
val concat: Types.t -> Types.t -> Types.t
val flatten: Types.t -> Types.t
val map: (Types.t -> Types.t) -> Types.t -> Types.t
12

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

17
val star: Types.t -> Types.t
18
  (* For a type t, returns [t*] *)
19
val plus: Types.t -> Types.t
20

21
val approx: Types.t -> Types.t
22
23
24
25
26
27
  (*  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))
  *)
28
29

  (** given a list of descrs create the sequence type from them *)
30
val seq_of_list: Types.t list -> Types.t
31