heptagon/lib/pervasives.epi

32 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-06-21 12:11:06 +02:00
(* the core module *)
(* $Id: pervasives.epi 77 2009-03-11 16:07:00Z delaval $ *)
(* pour debugger set arguments -nopervasives -i lib/pervasives.epi *)
type bool = true | false
type int
type float
val fun (&)(bool;bool) returns (bool)
val fun ( * )(int;int) returns (int)
val fun ( *. )(float;float) returns (float)
2010-10-02 12:59:44 +02:00
val fun (%)(int;int) returns (int)
2010-06-21 12:11:06 +02:00
val fun (+)(int;int) returns (int)
val fun (+.)(float;float) returns (float)
val fun (-)(int;int) returns (int)
val fun (-.)(float;float) returns (float)
val fun (/)(int;int) returns (int)
val fun (/.)(float;float) returns (float)
val fun ( <= )(int;int) returns (bool)
val fun ( <=. )(float;float) returns (bool)
val fun ( < )(int;int) returns (bool)
val fun ( <. )(float;float) returns (bool)
val fun ( >= )(int;int) returns (bool)
val fun ( >=. )(float;float) returns (bool)
val fun ( > )(int;int) returns (bool)
val fun ( >. )(float;float) returns (bool)
2010-06-21 12:11:06 +02:00
val fun (not)(bool) returns (bool)
val fun (or)(bool;bool) returns (bool)
2010-08-02 16:13:58 +02:00
val fun (xor)(bool;bool) returns (bool)
2010-06-21 12:11:06 +02:00
val fun (~-)(int) returns (int)
val fun (~-.)(float) returns (float)
2011-02-14 15:22:13 +01:00
val fun do_stuff(int) returns (int)
val between(int;int) returns (int)