source:
lab.git/Dev/sakura-editor/OCaml2.kwd
@
5a32926
Last change on this file since 5a32926 was 0774b70, checked in by mitty <mitty@…>, 13 years ago | |
---|---|
|
|
File size: 2.0 KB |
Rev | Line | |
---|---|---|
[0774b70] | 1 | // OCaml keywords definition file |
2 | ||
3 | // Exceptions | |
4 | raise | |
5 | invalid_arg | |
6 | failwith | |
7 | Exit | |
8 | ||
9 | // Comparisons | |
10 | (=) | |
11 | (<>) | |
12 | (<) | |
13 | (>) | |
14 | (<=) | |
15 | (>=) | |
16 | compare | |
17 | min | |
18 | max | |
19 | (==) | |
20 | (!=) | |
21 | ||
22 | // Boolean operations | |
23 | not | |
24 | (&&) | |
25 | (&) | |
26 | (||) | |
27 | (or) | |
28 | ||
29 | // Integer arithmetic | |
30 | (~-) | |
31 | (~+) | |
32 | succ | |
33 | pred | |
34 | (+) | |
35 | (-) | |
36 | ( * ) | |
37 | (/) | |
38 | (mod) | |
39 | abs | |
40 | max_int | |
41 | min_int | |
42 | ||
43 | // Bitwise operations | |
44 | (land) | |
45 | (lor) | |
46 | (lxor) | |
47 | lnot | |
48 | (lsl) | |
49 | (lsr) | |
50 | (asr) | |
51 | ||
52 | // Floating-point arithmetic | |
53 | (~-.) | |
54 | (~+.) | |
55 | (+.) | |
56 | (-.) | |
57 | ( *. ) | |
58 | (/.) | |
59 | ( ** ) | |
60 | sqrt | |
61 | exp | |
62 | log | |
63 | log10 | |
64 | expm1 | |
65 | log1p | |
66 | cos | |
67 | sin | |
68 | tan | |
69 | acos | |
70 | asin | |
71 | atan | |
72 | atan2 | |
73 | cosh | |
74 | sinh | |
75 | tanh | |
76 | ceil | |
77 | floor | |
78 | abs_float | |
79 | mod_float | |
80 | frexp | |
81 | ldexp | |
82 | modf | |
83 | float | |
84 | float_of_int | |
85 | truncate | |
86 | int_of_float | |
87 | infinity | |
88 | neg_infinity | |
89 | nan | |
90 | max_float | |
91 | min_float | |
92 | epsilon_float | |
93 | classify_float | |
94 | ||
95 | // String operations | |
96 | (^) | |
97 | ||
98 | // Character operations | |
99 | int_of_char | |
100 | char_of_int | |
101 | ||
102 | // Unit operations | |
103 | ignore | |
104 | ||
105 | // String conversion functions | |
106 | string_of_bool | |
107 | bool_of_string | |
108 | string_of_int | |
109 | int_of_string | |
110 | string_of_float | |
111 | float_of_string | |
112 | ||
113 | // Pair operations | |
114 | fst | |
115 | snd | |
116 | ||
117 | // List operations | |
118 | (@) | |
119 | ||
120 | // Input/output | |
121 | stdin | |
122 | stdout | |
123 | stderr | |
124 | ||
125 | // Output functions on standard output | |
126 | print_char | |
127 | print_string | |
128 | print_int | |
129 | print_float | |
130 | print_endline | |
131 | print_newline | |
132 | ||
133 | // Output functions on standard error | |
134 | prerr_char | |
135 | prerr_string | |
136 | prerr_int | |
137 | prerr_float | |
138 | prerr_endline | |
139 | prerr_newline | |
140 | ||
141 | // Input functions on standard input | |
142 | read_line | |
143 | read_int | |
144 | read_float | |
145 | ||
146 | // General output functions | |
147 | open_out | |
148 | open_out_bin | |
149 | open_out_gen | |
150 | flush | |
151 | flush_all | |
152 | output_char | |
153 | output_string | |
154 | output | |
155 | output_byte | |
156 | output_binary_int | |
157 | output_value | |
158 | seek_out | |
159 | pos_out | |
160 | out_channel_length | |
161 | close_out | |
162 | close_out_noerr | |
163 | set_binary_mode_out | |
164 | ||
165 | // General input functions | |
166 | open_in | |
167 | open_in_bin | |
168 | open_in_gen | |
169 | input_char | |
170 | input_line | |
171 | input | |
172 | really_input | |
173 | input_byte | |
174 | input_binary_int | |
175 | input_value | |
176 | seek_in | |
177 | pos_in | |
178 | in_channel_length | |
179 | close_in | |
180 | close_in_noerr | |
181 | set_binary_mode_in | |
182 | ||
183 | // References | |
184 | ref | |
185 | (!) | |
186 | (:=) | |
187 | incr | |
188 | decr | |
189 | ||
190 | // Operations on format strings | |
191 | string_of_format | |
192 | format_of_string | |
193 | (^^) | |
194 | ||
195 | // Program termination | |
196 | exit | |
197 | at_exit |
Note: See TracBrowser
for help on using the repository browser.