Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (41 sloc) 1.637 kb
fccc685 Initial open-source release
MLstate authored
1 (*
2 Copyright © 2011 MLstate
3
4 This file is part of OPA.
5
6 OPA is free software: you can redistribute it and/or modify it under the
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
10 OPA is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with OPA. If not, see <http://www.gnu.org/licenses/>.
17 *)
18
19 (* Bool *)
20 (* import Pervasives *)
21
22 (* register-spe-op _and\(&&) : bool -> bool -> bool *)
23 (* register _and\Pervasives.(&&) : bool -> bool -> bool *)
24
25
26
27 ##register _and : bool, bool -> bool
28 let _and = ( && )
29 ##register _or : bool, bool -> bool
30 let _or = ( || )
31 ##register not : bool -> bool
32 let not = ( not )
33
34 ##register eq : 'a, 'a -> bool
35 let eq x y = 0 = ServerLib.compare x y
36 ##register lt : 'a, 'a -> bool
37 let lt x y = 0 > ServerLib.compare x y
38 ##register gt : 'a, 'a -> bool
39 let gt x y = 0 < ServerLib.compare x y
40 ##register le : 'a, 'a -> bool
41 let le x y = 0 >= ServerLib.compare x y
42 ##register ge : 'a, 'a -> bool
43 let ge x y = 0 <= ServerLib.compare x y
44
45
46 (* register &&\Pervasives.(&&) : bool -> bool -> bool *)
47 (* (\* let and_bool = ( && ) *\) *)
48
49 (* register or_bool : bool -> bool -> bool *)
50 (* register ||\or_bool : bool -> bool -> bool *)
51 (* let or_bool = ( || ) *)
52
53 (* register not_bool : bool -> bool *)
54 (* register not_bool : bool -> bool *)
55 (* let not_bool = ( not ) *)
Something went wrong with that request. Please try again.