Project

General

Profile

Download (1.28 KB) Statistics
| Branch: | Tag: | Revision:
1
(********************************************************************)
2
(*                                                                  *)
3
(*  The LustreC compiler toolset   /  The LustreC Development Team  *)
4
(*  Copyright 2012 -    --   ONERA - CNRS - INPT                    *)
5
(*                                                                  *)
6
(*  LustreC is free software, distributed WITHOUT ANY WARRANTY      *)
7
(*  under the terms of the GNU Lesser General Public License        *)
8
(*  version 2.1.                                                    *)
9
(*                                                                  *)
10
(********************************************************************)
11

    
12
open Delay
13
(** Base types and predefined operator types. *)
14

    
15
let delay_zero () = new_univar ()
16

    
17
let delay_un = new_delay Dundef
18

    
19
let delay_nullary_poly_op =
20
  let univ = new_univar () in
21
  univ
22

    
23
let delay_unary_poly_op =
24
  let univ = new_univar () in
25
  new_delay (Darrow (univ, univ))
26

    
27
let delay_binary_poly_op =
28
  let univ = new_univar () in
29
  new_delay (Darrow (new_delay (Dtuple [ univ; univ ]), univ))
30

    
31
let delay_ternary_poly_op =
32
  let univ = new_univar () in
33
  new_delay (Darrow (new_delay (Dtuple [ univ; univ; univ ]), univ))
34

    
35
(* Local Variables: *)
36
(* compile-command:"make -C .." *)
37
(* End: *)
(18-18/66)