@tellahq/rescript 10.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (997) hide show
  1. package/CHANGELOG.md +1717 -0
  2. package/COPYING +674 -0
  3. package/COPYING.LESSER +165 -0
  4. package/CREDITS.md +59 -0
  5. package/LICENSE +24 -0
  6. package/README.md +114 -0
  7. package/bsc +22 -0
  8. package/bsrefmt +16 -0
  9. package/darwin/bsb_helper.exe +0 -0
  10. package/darwin/bsc.exe +0 -0
  11. package/darwin/ninja.COPYING +202 -0
  12. package/darwin/ninja.exe +0 -0
  13. package/darwin/refmt.exe +0 -0
  14. package/darwin/rescript.exe +0 -0
  15. package/darwinarm64/bsb_helper.exe +0 -0
  16. package/darwinarm64/bsc.exe +0 -0
  17. package/darwinarm64/ninja.COPYING +202 -0
  18. package/darwinarm64/ninja.exe +0 -0
  19. package/darwinarm64/refmt.exe +0 -0
  20. package/darwinarm64/rescript.exe +0 -0
  21. package/docs/docson/build-schema.json +557 -0
  22. package/freebsd/ninja.COPYING +202 -0
  23. package/jscomp/stubs/ext_basic_hash_stubs.c +216 -0
  24. package/lib/4.06.1/bsb_helper.ml +2436 -0
  25. package/lib/4.06.1/bsb_helper.mli +0 -0
  26. package/lib/4.06.1/refmt_main3.ml +115517 -0
  27. package/lib/4.06.1/refmt_main3.mli +1 -0
  28. package/lib/4.06.1/rescript.ml +15500 -0
  29. package/lib/4.06.1/rescript.mli +0 -0
  30. package/lib/4.06.1/whole_compiler.ml +306395 -0
  31. package/lib/4.06.1/whole_compiler.mli +0 -0
  32. package/lib/bstracing +270 -0
  33. package/lib/es6/arg.js +717 -0
  34. package/lib/es6/array.js +511 -0
  35. package/lib/es6/arrayLabels.js +511 -0
  36. package/lib/es6/belt.js +57 -0
  37. package/lib/es6/belt_Array.js +764 -0
  38. package/lib/es6/belt_Float.js +16 -0
  39. package/lib/es6/belt_HashMap.js +280 -0
  40. package/lib/es6/belt_HashMapInt.js +264 -0
  41. package/lib/es6/belt_HashMapString.js +264 -0
  42. package/lib/es6/belt_HashSet.js +222 -0
  43. package/lib/es6/belt_HashSetInt.js +207 -0
  44. package/lib/es6/belt_HashSetString.js +207 -0
  45. package/lib/es6/belt_Id.js +71 -0
  46. package/lib/es6/belt_Int.js +16 -0
  47. package/lib/es6/belt_List.js +1512 -0
  48. package/lib/es6/belt_Map.js +376 -0
  49. package/lib/es6/belt_MapDict.js +417 -0
  50. package/lib/es6/belt_MapInt.js +307 -0
  51. package/lib/es6/belt_MapString.js +307 -0
  52. package/lib/es6/belt_MutableMap.js +395 -0
  53. package/lib/es6/belt_MutableMapInt.js +362 -0
  54. package/lib/es6/belt_MutableMapString.js +362 -0
  55. package/lib/es6/belt_MutableQueue.js +299 -0
  56. package/lib/es6/belt_MutableSet.js +538 -0
  57. package/lib/es6/belt_MutableSetInt.js +501 -0
  58. package/lib/es6/belt_MutableSetString.js +501 -0
  59. package/lib/es6/belt_MutableStack.js +137 -0
  60. package/lib/es6/belt_Option.js +151 -0
  61. package/lib/es6/belt_Range.js +109 -0
  62. package/lib/es6/belt_Result.js +136 -0
  63. package/lib/es6/belt_Set.js +314 -0
  64. package/lib/es6/belt_SetDict.js +362 -0
  65. package/lib/es6/belt_SetInt.js +359 -0
  66. package/lib/es6/belt_SetString.js +359 -0
  67. package/lib/es6/belt_SortArray.js +427 -0
  68. package/lib/es6/belt_SortArrayInt.js +374 -0
  69. package/lib/es6/belt_SortArrayString.js +374 -0
  70. package/lib/es6/belt_internalAVLset.js +940 -0
  71. package/lib/es6/belt_internalAVLtree.js +1146 -0
  72. package/lib/es6/belt_internalBuckets.js +287 -0
  73. package/lib/es6/belt_internalBucketsType.js +49 -0
  74. package/lib/es6/belt_internalMapInt.js +365 -0
  75. package/lib/es6/belt_internalMapString.js +365 -0
  76. package/lib/es6/belt_internalSetBuckets.js +191 -0
  77. package/lib/es6/belt_internalSetInt.js +209 -0
  78. package/lib/es6/belt_internalSetString.js +209 -0
  79. package/lib/es6/buffer.js +477 -0
  80. package/lib/es6/bytes.js +704 -0
  81. package/lib/es6/bytesLabels.js +704 -0
  82. package/lib/es6/callback.js +16 -0
  83. package/lib/es6/caml.js +196 -0
  84. package/lib/es6/caml_array.js +122 -0
  85. package/lib/es6/caml_array_extern.js +1 -0
  86. package/lib/es6/caml_bytes.js +122 -0
  87. package/lib/es6/caml_exceptions.js +31 -0
  88. package/lib/es6/caml_external_polyfill.js +32 -0
  89. package/lib/es6/caml_float.js +129 -0
  90. package/lib/es6/caml_float_extern.js +1 -0
  91. package/lib/es6/caml_format.js +818 -0
  92. package/lib/es6/caml_hash.js +101 -0
  93. package/lib/es6/caml_hash_primitive.js +51 -0
  94. package/lib/es6/caml_int32.js +28 -0
  95. package/lib/es6/caml_int64.js +606 -0
  96. package/lib/es6/caml_int64_extern.js +1 -0
  97. package/lib/es6/caml_js_exceptions.js +31 -0
  98. package/lib/es6/caml_lexer.js +258 -0
  99. package/lib/es6/caml_md5.js +168 -0
  100. package/lib/es6/caml_module.js +117 -0
  101. package/lib/es6/caml_nativeint_extern.js +1 -0
  102. package/lib/es6/caml_obj.js +413 -0
  103. package/lib/es6/caml_option.js +86 -0
  104. package/lib/es6/caml_parser.js +303 -0
  105. package/lib/es6/caml_splice_call.js +52 -0
  106. package/lib/es6/caml_string.js +23 -0
  107. package/lib/es6/caml_string_extern.js +1 -0
  108. package/lib/es6/caml_sys.js +99 -0
  109. package/lib/es6/caml_undefined_extern.js +1 -0
  110. package/lib/es6/camlinternalLazy.js +59 -0
  111. package/lib/es6/camlinternalMod.js +1 -0
  112. package/lib/es6/char.js +126 -0
  113. package/lib/es6/complex.js +176 -0
  114. package/lib/es6/curry.js +526 -0
  115. package/lib/es6/digest.js +118 -0
  116. package/lib/es6/dom.js +12 -0
  117. package/lib/es6/dom_storage.js +27 -0
  118. package/lib/es6/dom_storage2.js +1 -0
  119. package/lib/es6/filename.js +496 -0
  120. package/lib/es6/genlex.js +666 -0
  121. package/lib/es6/hashtbl.js +1115 -0
  122. package/lib/es6/hashtblLabels.js +170 -0
  123. package/lib/es6/int32.js +75 -0
  124. package/lib/es6/int64.js +70 -0
  125. package/lib/es6/js.js +111 -0
  126. package/lib/es6/js_OO.js +15 -0
  127. package/lib/es6/js_array.js +223 -0
  128. package/lib/es6/js_array2.js +1 -0
  129. package/lib/es6/js_bigint.js +1 -0
  130. package/lib/es6/js_cast.js +1 -0
  131. package/lib/es6/js_console.js +1 -0
  132. package/lib/es6/js_date.js +1 -0
  133. package/lib/es6/js_dict.js +85 -0
  134. package/lib/es6/js_exn.js +44 -0
  135. package/lib/es6/js_float.js +1 -0
  136. package/lib/es6/js_global.js +1 -0
  137. package/lib/es6/js_int.js +17 -0
  138. package/lib/es6/js_json.js +172 -0
  139. package/lib/es6/js_list.js +333 -0
  140. package/lib/es6/js_map.js +1 -0
  141. package/lib/es6/js_mapperRt.js +54 -0
  142. package/lib/es6/js_math.js +50 -0
  143. package/lib/es6/js_null.js +49 -0
  144. package/lib/es6/js_null_undefined.js +35 -0
  145. package/lib/es6/js_obj.js +1 -0
  146. package/lib/es6/js_option.js +104 -0
  147. package/lib/es6/js_promise.js +17 -0
  148. package/lib/es6/js_re.js +1 -0
  149. package/lib/es6/js_result.js +1 -0
  150. package/lib/es6/js_set.js +1 -0
  151. package/lib/es6/js_string.js +199 -0
  152. package/lib/es6/js_string2.js +1 -0
  153. package/lib/es6/js_typed_array.js +1733 -0
  154. package/lib/es6/js_typed_array2.js +39 -0
  155. package/lib/es6/js_types.js +77 -0
  156. package/lib/es6/js_undefined.js +52 -0
  157. package/lib/es6/js_vector.js +134 -0
  158. package/lib/es6/js_weakmap.js +1 -0
  159. package/lib/es6/js_weakset.js +1 -0
  160. package/lib/es6/jsx.js +1 -0
  161. package/lib/es6/jsxDOM.js +1 -0
  162. package/lib/es6/jsxDOMStyle.js +1 -0
  163. package/lib/es6/jsxEvent.js +59 -0
  164. package/lib/es6/lazy.js +44 -0
  165. package/lib/es6/lexing.js +217 -0
  166. package/lib/es6/list.js +1713 -0
  167. package/lib/es6/listLabels.js +1713 -0
  168. package/lib/es6/map.js +936 -0
  169. package/lib/es6/mapLabels.js +951 -0
  170. package/lib/es6/moreLabels.js +1931 -0
  171. package/lib/es6/node.js +39 -0
  172. package/lib/es6/node_buffer.js +1 -0
  173. package/lib/es6/node_child_process.js +1 -0
  174. package/lib/es6/node_fs.js +9 -0
  175. package/lib/es6/node_module.js +1 -0
  176. package/lib/es6/node_path.js +1 -0
  177. package/lib/es6/node_process.js +18 -0
  178. package/lib/es6/obj.js +11 -0
  179. package/lib/es6/package.json +1 -0
  180. package/lib/es6/parsing.js +237 -0
  181. package/lib/es6/pervasives.js +250 -0
  182. package/lib/es6/printexc.js +102 -0
  183. package/lib/es6/queue.js +181 -0
  184. package/lib/es6/random.js +280 -0
  185. package/lib/es6/set.js +955 -0
  186. package/lib/es6/setLabels.js +988 -0
  187. package/lib/es6/sort.js +168 -0
  188. package/lib/es6/stack.js +88 -0
  189. package/lib/es6/stdLabels.js +18 -0
  190. package/lib/es6/stream.js +496 -0
  191. package/lib/es6/string.js +337 -0
  192. package/lib/es6/stringLabels.js +337 -0
  193. package/lib/es6/sys.js +182 -0
  194. package/lib/es6/uchar.js +133 -0
  195. package/lib/js/arg.js +715 -0
  196. package/lib/js/array.js +509 -0
  197. package/lib/js/arrayLabels.js +509 -0
  198. package/lib/js/belt.js +55 -0
  199. package/lib/js/belt_Array.js +762 -0
  200. package/lib/js/belt_Float.js +14 -0
  201. package/lib/js/belt_HashMap.js +278 -0
  202. package/lib/js/belt_HashMapInt.js +262 -0
  203. package/lib/js/belt_HashMapString.js +262 -0
  204. package/lib/js/belt_HashSet.js +220 -0
  205. package/lib/js/belt_HashSetInt.js +205 -0
  206. package/lib/js/belt_HashSetString.js +205 -0
  207. package/lib/js/belt_Id.js +69 -0
  208. package/lib/js/belt_Int.js +14 -0
  209. package/lib/js/belt_List.js +1510 -0
  210. package/lib/js/belt_Map.js +374 -0
  211. package/lib/js/belt_MapDict.js +415 -0
  212. package/lib/js/belt_MapInt.js +305 -0
  213. package/lib/js/belt_MapString.js +305 -0
  214. package/lib/js/belt_MutableMap.js +393 -0
  215. package/lib/js/belt_MutableMapInt.js +360 -0
  216. package/lib/js/belt_MutableMapString.js +360 -0
  217. package/lib/js/belt_MutableQueue.js +297 -0
  218. package/lib/js/belt_MutableSet.js +536 -0
  219. package/lib/js/belt_MutableSetInt.js +499 -0
  220. package/lib/js/belt_MutableSetString.js +499 -0
  221. package/lib/js/belt_MutableStack.js +135 -0
  222. package/lib/js/belt_Option.js +149 -0
  223. package/lib/js/belt_Range.js +107 -0
  224. package/lib/js/belt_Result.js +134 -0
  225. package/lib/js/belt_Set.js +312 -0
  226. package/lib/js/belt_SetDict.js +360 -0
  227. package/lib/js/belt_SetInt.js +357 -0
  228. package/lib/js/belt_SetString.js +357 -0
  229. package/lib/js/belt_SortArray.js +425 -0
  230. package/lib/js/belt_SortArrayInt.js +372 -0
  231. package/lib/js/belt_SortArrayString.js +372 -0
  232. package/lib/js/belt_internalAVLset.js +938 -0
  233. package/lib/js/belt_internalAVLtree.js +1144 -0
  234. package/lib/js/belt_internalBuckets.js +285 -0
  235. package/lib/js/belt_internalBucketsType.js +47 -0
  236. package/lib/js/belt_internalMapInt.js +363 -0
  237. package/lib/js/belt_internalMapString.js +363 -0
  238. package/lib/js/belt_internalSetBuckets.js +189 -0
  239. package/lib/js/belt_internalSetInt.js +207 -0
  240. package/lib/js/belt_internalSetString.js +207 -0
  241. package/lib/js/buffer.js +475 -0
  242. package/lib/js/bytes.js +702 -0
  243. package/lib/js/bytesLabels.js +702 -0
  244. package/lib/js/callback.js +14 -0
  245. package/lib/js/caml.js +194 -0
  246. package/lib/js/caml_array.js +120 -0
  247. package/lib/js/caml_array_extern.js +1 -0
  248. package/lib/js/caml_bytes.js +120 -0
  249. package/lib/js/caml_exceptions.js +29 -0
  250. package/lib/js/caml_external_polyfill.js +30 -0
  251. package/lib/js/caml_float.js +127 -0
  252. package/lib/js/caml_float_extern.js +1 -0
  253. package/lib/js/caml_format.js +816 -0
  254. package/lib/js/caml_hash.js +99 -0
  255. package/lib/js/caml_hash_primitive.js +49 -0
  256. package/lib/js/caml_int32.js +26 -0
  257. package/lib/js/caml_int64.js +604 -0
  258. package/lib/js/caml_int64_extern.js +1 -0
  259. package/lib/js/caml_js_exceptions.js +29 -0
  260. package/lib/js/caml_lexer.js +256 -0
  261. package/lib/js/caml_md5.js +166 -0
  262. package/lib/js/caml_module.js +115 -0
  263. package/lib/js/caml_nativeint_extern.js +1 -0
  264. package/lib/js/caml_obj.js +411 -0
  265. package/lib/js/caml_option.js +84 -0
  266. package/lib/js/caml_parser.js +301 -0
  267. package/lib/js/caml_splice_call.js +50 -0
  268. package/lib/js/caml_string.js +21 -0
  269. package/lib/js/caml_string_extern.js +1 -0
  270. package/lib/js/caml_sys.js +97 -0
  271. package/lib/js/caml_undefined_extern.js +1 -0
  272. package/lib/js/camlinternalLazy.js +57 -0
  273. package/lib/js/camlinternalMod.js +1 -0
  274. package/lib/js/char.js +124 -0
  275. package/lib/js/complex.js +174 -0
  276. package/lib/js/curry.js +524 -0
  277. package/lib/js/digest.js +116 -0
  278. package/lib/js/dom.js +10 -0
  279. package/lib/js/dom_storage.js +25 -0
  280. package/lib/js/dom_storage2.js +1 -0
  281. package/lib/js/filename.js +494 -0
  282. package/lib/js/genlex.js +664 -0
  283. package/lib/js/hashtbl.js +1113 -0
  284. package/lib/js/hashtblLabels.js +168 -0
  285. package/lib/js/int32.js +73 -0
  286. package/lib/js/int64.js +68 -0
  287. package/lib/js/js.js +109 -0
  288. package/lib/js/js_OO.js +13 -0
  289. package/lib/js/js_array.js +221 -0
  290. package/lib/js/js_array2.js +1 -0
  291. package/lib/js/js_bigint.js +1 -0
  292. package/lib/js/js_cast.js +1 -0
  293. package/lib/js/js_console.js +1 -0
  294. package/lib/js/js_date.js +1 -0
  295. package/lib/js/js_dict.js +83 -0
  296. package/lib/js/js_exn.js +42 -0
  297. package/lib/js/js_float.js +1 -0
  298. package/lib/js/js_global.js +1 -0
  299. package/lib/js/js_int.js +15 -0
  300. package/lib/js/js_json.js +170 -0
  301. package/lib/js/js_list.js +331 -0
  302. package/lib/js/js_map.js +1 -0
  303. package/lib/js/js_mapperRt.js +52 -0
  304. package/lib/js/js_math.js +48 -0
  305. package/lib/js/js_null.js +47 -0
  306. package/lib/js/js_null_undefined.js +33 -0
  307. package/lib/js/js_obj.js +1 -0
  308. package/lib/js/js_option.js +103 -0
  309. package/lib/js/js_promise.js +15 -0
  310. package/lib/js/js_re.js +1 -0
  311. package/lib/js/js_result.js +1 -0
  312. package/lib/js/js_set.js +1 -0
  313. package/lib/js/js_string.js +197 -0
  314. package/lib/js/js_string2.js +1 -0
  315. package/lib/js/js_typed_array.js +1731 -0
  316. package/lib/js/js_typed_array2.js +37 -0
  317. package/lib/js/js_types.js +75 -0
  318. package/lib/js/js_undefined.js +50 -0
  319. package/lib/js/js_vector.js +132 -0
  320. package/lib/js/js_weakmap.js +1 -0
  321. package/lib/js/js_weakset.js +1 -0
  322. package/lib/js/jsx.js +1 -0
  323. package/lib/js/jsxDOM.js +1 -0
  324. package/lib/js/jsxDOMStyle.js +1 -0
  325. package/lib/js/jsxEvent.js +57 -0
  326. package/lib/js/lazy.js +42 -0
  327. package/lib/js/lexing.js +215 -0
  328. package/lib/js/list.js +1711 -0
  329. package/lib/js/listLabels.js +1711 -0
  330. package/lib/js/map.js +934 -0
  331. package/lib/js/mapLabels.js +949 -0
  332. package/lib/js/moreLabels.js +1929 -0
  333. package/lib/js/node.js +37 -0
  334. package/lib/js/node_buffer.js +1 -0
  335. package/lib/js/node_child_process.js +1 -0
  336. package/lib/js/node_fs.js +7 -0
  337. package/lib/js/node_module.js +1 -0
  338. package/lib/js/node_path.js +1 -0
  339. package/lib/js/node_process.js +16 -0
  340. package/lib/js/obj.js +9 -0
  341. package/lib/js/parsing.js +235 -0
  342. package/lib/js/pervasives.js +248 -0
  343. package/lib/js/printexc.js +100 -0
  344. package/lib/js/queue.js +179 -0
  345. package/lib/js/random.js +278 -0
  346. package/lib/js/set.js +953 -0
  347. package/lib/js/setLabels.js +986 -0
  348. package/lib/js/sort.js +166 -0
  349. package/lib/js/stack.js +86 -0
  350. package/lib/js/stdLabels.js +16 -0
  351. package/lib/js/stream.js +494 -0
  352. package/lib/js/string.js +335 -0
  353. package/lib/js/stringLabels.js +335 -0
  354. package/lib/js/sys.js +180 -0
  355. package/lib/js/uchar.js +131 -0
  356. package/lib/minisocket.js +93 -0
  357. package/lib/ocaml/arg.cmi +0 -0
  358. package/lib/ocaml/arg.cmt +0 -0
  359. package/lib/ocaml/arg.cmti +0 -0
  360. package/lib/ocaml/arg.ml +359 -0
  361. package/lib/ocaml/arg.mli +185 -0
  362. package/lib/ocaml/array.cmi +0 -0
  363. package/lib/ocaml/array.cmt +0 -0
  364. package/lib/ocaml/array.cmti +0 -0
  365. package/lib/ocaml/array.ml +307 -0
  366. package/lib/ocaml/array.mli +275 -0
  367. package/lib/ocaml/arrayLabels.cmi +0 -0
  368. package/lib/ocaml/arrayLabels.cmt +0 -0
  369. package/lib/ocaml/arrayLabels.cmti +0 -0
  370. package/lib/ocaml/arrayLabels.ml +307 -0
  371. package/lib/ocaml/arrayLabels.mli +276 -0
  372. package/lib/ocaml/belt.cmi +0 -0
  373. package/lib/ocaml/belt.cmt +0 -0
  374. package/lib/ocaml/belt.ml +352 -0
  375. package/lib/ocaml/belt_Array.cmi +0 -0
  376. package/lib/ocaml/belt_Array.cmt +0 -0
  377. package/lib/ocaml/belt_Array.cmti +0 -0
  378. package/lib/ocaml/belt_Array.ml +525 -0
  379. package/lib/ocaml/belt_Array.mli +707 -0
  380. package/lib/ocaml/belt_Float.cmi +0 -0
  381. package/lib/ocaml/belt_Float.cmt +0 -0
  382. package/lib/ocaml/belt_Float.cmti +0 -0
  383. package/lib/ocaml/belt_Float.ml +50 -0
  384. package/lib/ocaml/belt_Float.mli +106 -0
  385. package/lib/ocaml/belt_HashMap.cmi +0 -0
  386. package/lib/ocaml/belt_HashMap.cmt +0 -0
  387. package/lib/ocaml/belt_HashMap.cmti +0 -0
  388. package/lib/ocaml/belt_HashMap.ml +226 -0
  389. package/lib/ocaml/belt_HashMap.mli +436 -0
  390. package/lib/ocaml/belt_HashMapInt.cmi +0 -0
  391. package/lib/ocaml/belt_HashMapInt.cmt +0 -0
  392. package/lib/ocaml/belt_HashMapInt.cmti +0 -0
  393. package/lib/ocaml/belt_HashMapInt.ml +206 -0
  394. package/lib/ocaml/belt_HashMapInt.mli +50 -0
  395. package/lib/ocaml/belt_HashMapString.cmi +0 -0
  396. package/lib/ocaml/belt_HashMapString.cmt +0 -0
  397. package/lib/ocaml/belt_HashMapString.cmti +0 -0
  398. package/lib/ocaml/belt_HashMapString.ml +206 -0
  399. package/lib/ocaml/belt_HashMapString.mli +50 -0
  400. package/lib/ocaml/belt_HashSet.cmi +0 -0
  401. package/lib/ocaml/belt_HashSet.cmt +0 -0
  402. package/lib/ocaml/belt_HashSet.cmti +0 -0
  403. package/lib/ocaml/belt_HashSet.ml +196 -0
  404. package/lib/ocaml/belt_HashSet.mli +125 -0
  405. package/lib/ocaml/belt_HashSetInt.cmi +0 -0
  406. package/lib/ocaml/belt_HashSetInt.cmt +0 -0
  407. package/lib/ocaml/belt_HashSetInt.cmti +0 -0
  408. package/lib/ocaml/belt_HashSetInt.ml +155 -0
  409. package/lib/ocaml/belt_HashSetInt.mli +74 -0
  410. package/lib/ocaml/belt_HashSetString.cmi +0 -0
  411. package/lib/ocaml/belt_HashSetString.cmt +0 -0
  412. package/lib/ocaml/belt_HashSetString.cmti +0 -0
  413. package/lib/ocaml/belt_HashSetString.ml +156 -0
  414. package/lib/ocaml/belt_HashSetString.mli +74 -0
  415. package/lib/ocaml/belt_Id.cmi +0 -0
  416. package/lib/ocaml/belt_Id.cmt +0 -0
  417. package/lib/ocaml/belt_Id.cmti +0 -0
  418. package/lib/ocaml/belt_Id.ml +133 -0
  419. package/lib/ocaml/belt_Id.mli +171 -0
  420. package/lib/ocaml/belt_Int.cmi +0 -0
  421. package/lib/ocaml/belt_Int.cmt +0 -0
  422. package/lib/ocaml/belt_Int.cmti +0 -0
  423. package/lib/ocaml/belt_Int.ml +50 -0
  424. package/lib/ocaml/belt_Int.mli +103 -0
  425. package/lib/ocaml/belt_List.cmi +0 -0
  426. package/lib/ocaml/belt_List.cmt +0 -0
  427. package/lib/ocaml/belt_List.cmti +0 -0
  428. package/lib/ocaml/belt_List.ml +803 -0
  429. package/lib/ocaml/belt_List.mli +844 -0
  430. package/lib/ocaml/belt_Map.cmi +0 -0
  431. package/lib/ocaml/belt_Map.cmt +0 -0
  432. package/lib/ocaml/belt_Map.cmti +0 -0
  433. package/lib/ocaml/belt_Map.ml +170 -0
  434. package/lib/ocaml/belt_Map.mli +496 -0
  435. package/lib/ocaml/belt_MapDict.cmi +0 -0
  436. package/lib/ocaml/belt_MapDict.cmt +0 -0
  437. package/lib/ocaml/belt_MapDict.cmti +0 -0
  438. package/lib/ocaml/belt_MapDict.ml +278 -0
  439. package/lib/ocaml/belt_MapDict.mli +268 -0
  440. package/lib/ocaml/belt_MapInt.cmi +0 -0
  441. package/lib/ocaml/belt_MapInt.cmt +0 -0
  442. package/lib/ocaml/belt_MapInt.cmti +0 -0
  443. package/lib/ocaml/belt_MapInt.ml +169 -0
  444. package/lib/ocaml/belt_MapInt.mli +187 -0
  445. package/lib/ocaml/belt_MapString.cmi +0 -0
  446. package/lib/ocaml/belt_MapString.cmt +0 -0
  447. package/lib/ocaml/belt_MapString.cmti +0 -0
  448. package/lib/ocaml/belt_MapString.ml +169 -0
  449. package/lib/ocaml/belt_MapString.mli +187 -0
  450. package/lib/ocaml/belt_MutableMap.cmi +0 -0
  451. package/lib/ocaml/belt_MutableMap.cmt +0 -0
  452. package/lib/ocaml/belt_MutableMap.cmti +0 -0
  453. package/lib/ocaml/belt_MutableMap.ml +241 -0
  454. package/lib/ocaml/belt_MutableMap.mli +145 -0
  455. package/lib/ocaml/belt_MutableMapInt.cmi +0 -0
  456. package/lib/ocaml/belt_MutableMapInt.cmt +0 -0
  457. package/lib/ocaml/belt_MutableMapInt.cmti +0 -0
  458. package/lib/ocaml/belt_MutableMapInt.ml +172 -0
  459. package/lib/ocaml/belt_MutableMapInt.mli +135 -0
  460. package/lib/ocaml/belt_MutableMapString.cmi +0 -0
  461. package/lib/ocaml/belt_MutableMapString.cmt +0 -0
  462. package/lib/ocaml/belt_MutableMapString.cmti +0 -0
  463. package/lib/ocaml/belt_MutableMapString.ml +172 -0
  464. package/lib/ocaml/belt_MutableMapString.mli +135 -0
  465. package/lib/ocaml/belt_MutableQueue.cmi +0 -0
  466. package/lib/ocaml/belt_MutableQueue.cmt +0 -0
  467. package/lib/ocaml/belt_MutableQueue.cmti +0 -0
  468. package/lib/ocaml/belt_MutableQueue.ml +222 -0
  469. package/lib/ocaml/belt_MutableQueue.mli +116 -0
  470. package/lib/ocaml/belt_MutableSet.cmi +0 -0
  471. package/lib/ocaml/belt_MutableSet.cmt +0 -0
  472. package/lib/ocaml/belt_MutableSet.cmti +0 -0
  473. package/lib/ocaml/belt_MutableSet.ml +371 -0
  474. package/lib/ocaml/belt_MutableSet.mli +617 -0
  475. package/lib/ocaml/belt_MutableSetInt.cmi +0 -0
  476. package/lib/ocaml/belt_MutableSetInt.cmt +0 -0
  477. package/lib/ocaml/belt_MutableSetInt.cmti +0 -0
  478. package/lib/ocaml/belt_MutableSetInt.ml +342 -0
  479. package/lib/ocaml/belt_MutableSetInt.mli +124 -0
  480. package/lib/ocaml/belt_MutableSetString.cmi +0 -0
  481. package/lib/ocaml/belt_MutableSetString.cmt +0 -0
  482. package/lib/ocaml/belt_MutableSetString.cmti +0 -0
  483. package/lib/ocaml/belt_MutableSetString.ml +342 -0
  484. package/lib/ocaml/belt_MutableSetString.mli +124 -0
  485. package/lib/ocaml/belt_MutableStack.cmi +0 -0
  486. package/lib/ocaml/belt_MutableStack.cmt +0 -0
  487. package/lib/ocaml/belt_MutableStack.cmti +0 -0
  488. package/lib/ocaml/belt_MutableStack.ml +106 -0
  489. package/lib/ocaml/belt_MutableStack.mli +63 -0
  490. package/lib/ocaml/belt_Option.cmi +0 -0
  491. package/lib/ocaml/belt_Option.cmt +0 -0
  492. package/lib/ocaml/belt_Option.cmti +0 -0
  493. package/lib/ocaml/belt_Option.ml +93 -0
  494. package/lib/ocaml/belt_Option.mli +270 -0
  495. package/lib/ocaml/belt_Range.cmi +0 -0
  496. package/lib/ocaml/belt_Range.cmt +0 -0
  497. package/lib/ocaml/belt_Range.cmti +0 -0
  498. package/lib/ocaml/belt_Range.ml +76 -0
  499. package/lib/ocaml/belt_Range.mli +114 -0
  500. package/lib/ocaml/belt_Result.cmi +0 -0
  501. package/lib/ocaml/belt_Result.cmt +0 -0
  502. package/lib/ocaml/belt_Result.cmti +0 -0
  503. package/lib/ocaml/belt_Result.ml +75 -0
  504. package/lib/ocaml/belt_Result.mli +205 -0
  505. package/lib/ocaml/belt_Set.cmi +0 -0
  506. package/lib/ocaml/belt_Set.cmt +0 -0
  507. package/lib/ocaml/belt_Set.cmti +0 -0
  508. package/lib/ocaml/belt_Set.cppo.ml +205 -0
  509. package/lib/ocaml/belt_Set.cppo.mli +153 -0
  510. package/lib/ocaml/belt_Set.ml +164 -0
  511. package/lib/ocaml/belt_Set.mli +523 -0
  512. package/lib/ocaml/belt_SetDict.cmi +0 -0
  513. package/lib/ocaml/belt_SetDict.cmt +0 -0
  514. package/lib/ocaml/belt_SetDict.cmti +0 -0
  515. package/lib/ocaml/belt_SetDict.ml +237 -0
  516. package/lib/ocaml/belt_SetDict.mli +567 -0
  517. package/lib/ocaml/belt_SetInt.cmi +0 -0
  518. package/lib/ocaml/belt_SetInt.cmt +0 -0
  519. package/lib/ocaml/belt_SetInt.cmti +0 -0
  520. package/lib/ocaml/belt_SetInt.ml +201 -0
  521. package/lib/ocaml/belt_SetInt.mli +151 -0
  522. package/lib/ocaml/belt_SetString.cmi +0 -0
  523. package/lib/ocaml/belt_SetString.cmt +0 -0
  524. package/lib/ocaml/belt_SetString.cmti +0 -0
  525. package/lib/ocaml/belt_SetString.ml +201 -0
  526. package/lib/ocaml/belt_SetString.mli +151 -0
  527. package/lib/ocaml/belt_SortArray.cmi +0 -0
  528. package/lib/ocaml/belt_SortArray.cmt +0 -0
  529. package/lib/ocaml/belt_SortArray.cmti +0 -0
  530. package/lib/ocaml/belt_SortArray.ml +322 -0
  531. package/lib/ocaml/belt_SortArray.mli +146 -0
  532. package/lib/ocaml/belt_SortArrayInt.cmi +0 -0
  533. package/lib/ocaml/belt_SortArrayInt.cmt +0 -0
  534. package/lib/ocaml/belt_SortArrayInt.cmti +0 -0
  535. package/lib/ocaml/belt_SortArrayInt.ml +263 -0
  536. package/lib/ocaml/belt_SortArrayInt.mli +93 -0
  537. package/lib/ocaml/belt_SortArrayString.cmi +0 -0
  538. package/lib/ocaml/belt_SortArrayString.cmt +0 -0
  539. package/lib/ocaml/belt_SortArrayString.cmti +0 -0
  540. package/lib/ocaml/belt_SortArrayString.ml +263 -0
  541. package/lib/ocaml/belt_SortArrayString.mli +93 -0
  542. package/lib/ocaml/belt_internalAVLset.cmt +0 -0
  543. package/lib/ocaml/belt_internalAVLset.cmti +0 -0
  544. package/lib/ocaml/belt_internalAVLset.ml +665 -0
  545. package/lib/ocaml/belt_internalAVLset.mli +124 -0
  546. package/lib/ocaml/belt_internalAVLtree.cmt +0 -0
  547. package/lib/ocaml/belt_internalAVLtree.cmti +0 -0
  548. package/lib/ocaml/belt_internalAVLtree.ml +762 -0
  549. package/lib/ocaml/belt_internalAVLtree.mli +215 -0
  550. package/lib/ocaml/belt_internalBuckets.cmt +0 -0
  551. package/lib/ocaml/belt_internalBuckets.cmti +0 -0
  552. package/lib/ocaml/belt_internalBuckets.ml +218 -0
  553. package/lib/ocaml/belt_internalBuckets.mli +57 -0
  554. package/lib/ocaml/belt_internalBucketsType.cmt +0 -0
  555. package/lib/ocaml/belt_internalBucketsType.cmti +0 -0
  556. package/lib/ocaml/belt_internalBucketsType.ml +59 -0
  557. package/lib/ocaml/belt_internalBucketsType.mli +46 -0
  558. package/lib/ocaml/belt_internalMapInt.cmt +0 -0
  559. package/lib/ocaml/belt_internalMapInt.ml +227 -0
  560. package/lib/ocaml/belt_internalMapString.cmt +0 -0
  561. package/lib/ocaml/belt_internalMapString.ml +227 -0
  562. package/lib/ocaml/belt_internalSetBuckets.cmt +0 -0
  563. package/lib/ocaml/belt_internalSetBuckets.cmti +0 -0
  564. package/lib/ocaml/belt_internalSetBuckets.ml +157 -0
  565. package/lib/ocaml/belt_internalSetBuckets.mli +47 -0
  566. package/lib/ocaml/belt_internalSetInt.cmt +0 -0
  567. package/lib/ocaml/belt_internalSetInt.ml +129 -0
  568. package/lib/ocaml/belt_internalSetString.cmt +0 -0
  569. package/lib/ocaml/belt_internalSetString.ml +129 -0
  570. package/lib/ocaml/belt_internals.cmti +0 -0
  571. package/lib/ocaml/belt_internals.mli +79 -0
  572. package/lib/ocaml/buffer.cmi +0 -0
  573. package/lib/ocaml/buffer.cmt +0 -0
  574. package/lib/ocaml/buffer.cmti +0 -0
  575. package/lib/ocaml/buffer.ml +250 -0
  576. package/lib/ocaml/buffer.mli +149 -0
  577. package/lib/ocaml/bytes.cmi +0 -0
  578. package/lib/ocaml/bytes.cmt +0 -0
  579. package/lib/ocaml/bytes.cmti +0 -0
  580. package/lib/ocaml/bytes.ml +431 -0
  581. package/lib/ocaml/bytes.mli +430 -0
  582. package/lib/ocaml/bytesLabels.cmi +0 -0
  583. package/lib/ocaml/bytesLabels.cmt +0 -0
  584. package/lib/ocaml/bytesLabels.cmti +0 -0
  585. package/lib/ocaml/bytesLabels.ml +428 -0
  586. package/lib/ocaml/bytesLabels.mli +276 -0
  587. package/lib/ocaml/callback.cmi +0 -0
  588. package/lib/ocaml/callback.cmt +0 -0
  589. package/lib/ocaml/callback.cmti +0 -0
  590. package/lib/ocaml/callback.ml +20 -0
  591. package/lib/ocaml/callback.mli +34 -0
  592. package/lib/ocaml/camlinternalLazy.cmi +0 -0
  593. package/lib/ocaml/camlinternalLazy.cmt +0 -0
  594. package/lib/ocaml/camlinternalLazy.cmti +0 -0
  595. package/lib/ocaml/camlinternalLazy.ml +89 -0
  596. package/lib/ocaml/camlinternalLazy.mli +27 -0
  597. package/lib/ocaml/camlinternalMod.cmi +0 -0
  598. package/lib/ocaml/camlinternalMod.cmt +0 -0
  599. package/lib/ocaml/camlinternalMod.cmti +0 -0
  600. package/lib/ocaml/camlinternalMod.ml +21 -0
  601. package/lib/ocaml/camlinternalMod.mli +25 -0
  602. package/lib/ocaml/char.cmi +0 -0
  603. package/lib/ocaml/char.cmt +0 -0
  604. package/lib/ocaml/char.cmti +0 -0
  605. package/lib/ocaml/char.ml +76 -0
  606. package/lib/ocaml/char.mli +72 -0
  607. package/lib/ocaml/complex.cmi +0 -0
  608. package/lib/ocaml/complex.cmt +0 -0
  609. package/lib/ocaml/complex.cmti +0 -0
  610. package/lib/ocaml/complex.ml +87 -0
  611. package/lib/ocaml/complex.mli +86 -0
  612. package/lib/ocaml/digest.cmi +0 -0
  613. package/lib/ocaml/digest.cmt +0 -0
  614. package/lib/ocaml/digest.cmti +0 -0
  615. package/lib/ocaml/digest.ml +66 -0
  616. package/lib/ocaml/digest.mli +68 -0
  617. package/lib/ocaml/dom.cmi +0 -0
  618. package/lib/ocaml/dom.cmt +0 -0
  619. package/lib/ocaml/dom.ml +296 -0
  620. package/lib/ocaml/dom_storage.cmi +0 -0
  621. package/lib/ocaml/dom_storage.cmt +0 -0
  622. package/lib/ocaml/dom_storage.ml +22 -0
  623. package/lib/ocaml/dom_storage2.cmi +0 -0
  624. package/lib/ocaml/dom_storage2.cmt +0 -0
  625. package/lib/ocaml/dom_storage2.ml +11 -0
  626. package/lib/ocaml/filename.cmi +0 -0
  627. package/lib/ocaml/filename.cmt +0 -0
  628. package/lib/ocaml/filename.cmti +0 -0
  629. package/lib/ocaml/filename.ml +233 -0
  630. package/lib/ocaml/filename.mli +134 -0
  631. package/lib/ocaml/genlex.cmi +0 -0
  632. package/lib/ocaml/genlex.cmt +0 -0
  633. package/lib/ocaml/genlex.cmti +0 -0
  634. package/lib/ocaml/genlex.ml +201 -0
  635. package/lib/ocaml/genlex.mli +73 -0
  636. package/lib/ocaml/hashmap.cppo.ml +214 -0
  637. package/lib/ocaml/hashmap.cppo.mli +54 -0
  638. package/lib/ocaml/hashset.cppo.ml +165 -0
  639. package/lib/ocaml/hashset.cppo.mli +77 -0
  640. package/lib/ocaml/hashtbl.cmi +0 -0
  641. package/lib/ocaml/hashtbl.cmt +0 -0
  642. package/lib/ocaml/hashtbl.cmti +0 -0
  643. package/lib/ocaml/hashtbl.ml +541 -0
  644. package/lib/ocaml/hashtbl.mli +411 -0
  645. package/lib/ocaml/hashtblLabels.cmi +0 -0
  646. package/lib/ocaml/hashtblLabels.cmt +0 -0
  647. package/lib/ocaml/hashtblLabels.ml +130 -0
  648. package/lib/ocaml/int32.cmi +0 -0
  649. package/lib/ocaml/int32.cmt +0 -0
  650. package/lib/ocaml/int32.cmti +0 -0
  651. package/lib/ocaml/int32.ml +64 -0
  652. package/lib/ocaml/int32.mli +186 -0
  653. package/lib/ocaml/int64.cmi +0 -0
  654. package/lib/ocaml/int64.cmt +0 -0
  655. package/lib/ocaml/int64.cmti +0 -0
  656. package/lib/ocaml/int64.ml +72 -0
  657. package/lib/ocaml/int64.mli +197 -0
  658. package/lib/ocaml/internal_map.cppo.ml +230 -0
  659. package/lib/ocaml/internal_set.cppo.ml +134 -0
  660. package/lib/ocaml/js.cmi +0 -0
  661. package/lib/ocaml/js.cmt +0 -0
  662. package/lib/ocaml/js.ml +313 -0
  663. package/lib/ocaml/js_OO.cmi +0 -0
  664. package/lib/ocaml/js_OO.cmt +0 -0
  665. package/lib/ocaml/js_OO.ml +180 -0
  666. package/lib/ocaml/js_array.cmi +0 -0
  667. package/lib/ocaml/js_array.cmt +0 -0
  668. package/lib/ocaml/js_array.ml +970 -0
  669. package/lib/ocaml/js_array2.cmi +0 -0
  670. package/lib/ocaml/js_array2.cmt +0 -0
  671. package/lib/ocaml/js_array2.ml +1065 -0
  672. package/lib/ocaml/js_bigint.cmi +0 -0
  673. package/lib/ocaml/js_bigint.cmt +0 -0
  674. package/lib/ocaml/js_bigint.ml +3 -0
  675. package/lib/ocaml/js_cast.cmi +0 -0
  676. package/lib/ocaml/js_cast.cmt +0 -0
  677. package/lib/ocaml/js_cast.cmti +0 -0
  678. package/lib/ocaml/js_cast.ml +29 -0
  679. package/lib/ocaml/js_cast.mli +45 -0
  680. package/lib/ocaml/js_console.cmi +0 -0
  681. package/lib/ocaml/js_console.cmt +0 -0
  682. package/lib/ocaml/js_console.ml +51 -0
  683. package/lib/ocaml/js_date.cmi +0 -0
  684. package/lib/ocaml/js_date.cmt +0 -0
  685. package/lib/ocaml/js_date.ml +1263 -0
  686. package/lib/ocaml/js_dict.cmi +0 -0
  687. package/lib/ocaml/js_dict.cmt +0 -0
  688. package/lib/ocaml/js_dict.cmti +0 -0
  689. package/lib/ocaml/js_dict.ml +114 -0
  690. package/lib/ocaml/js_dict.mli +152 -0
  691. package/lib/ocaml/js_exn.cmi +0 -0
  692. package/lib/ocaml/js_exn.cmt +0 -0
  693. package/lib/ocaml/js_exn.cmti +0 -0
  694. package/lib/ocaml/js_exn.ml +102 -0
  695. package/lib/ocaml/js_exn.mli +79 -0
  696. package/lib/ocaml/js_float.cmi +0 -0
  697. package/lib/ocaml/js_float.cmt +0 -0
  698. package/lib/ocaml/js_float.ml +294 -0
  699. package/lib/ocaml/js_global.cmi +0 -0
  700. package/lib/ocaml/js_global.cmt +0 -0
  701. package/lib/ocaml/js_global.ml +185 -0
  702. package/lib/ocaml/js_int.cmi +0 -0
  703. package/lib/ocaml/js_int.cmt +0 -0
  704. package/lib/ocaml/js_int.ml +158 -0
  705. package/lib/ocaml/js_json.cmi +0 -0
  706. package/lib/ocaml/js_json.cmt +0 -0
  707. package/lib/ocaml/js_json.cmti +0 -0
  708. package/lib/ocaml/js_json.ml +195 -0
  709. package/lib/ocaml/js_json.mli +244 -0
  710. package/lib/ocaml/js_list.cmi +0 -0
  711. package/lib/ocaml/js_list.cmt +0 -0
  712. package/lib/ocaml/js_list.cmti +0 -0
  713. package/lib/ocaml/js_list.ml +174 -0
  714. package/lib/ocaml/js_list.mli +72 -0
  715. package/lib/ocaml/js_map.cmi +0 -0
  716. package/lib/ocaml/js_map.cmt +0 -0
  717. package/lib/ocaml/js_map.ml +3 -0
  718. package/lib/ocaml/js_mapperRt.cmi +0 -0
  719. package/lib/ocaml/js_mapperRt.cmt +0 -0
  720. package/lib/ocaml/js_mapperRt.cmti +0 -0
  721. package/lib/ocaml/js_mapperRt.ml +50 -0
  722. package/lib/ocaml/js_mapperRt.mli +44 -0
  723. package/lib/ocaml/js_math.cmi +0 -0
  724. package/lib/ocaml/js_math.cmt +0 -0
  725. package/lib/ocaml/js_math.ml +626 -0
  726. package/lib/ocaml/js_null.cmi +0 -0
  727. package/lib/ocaml/js_null.cmt +0 -0
  728. package/lib/ocaml/js_null.cmti +0 -0
  729. package/lib/ocaml/js_null.ml +57 -0
  730. package/lib/ocaml/js_null.mli +87 -0
  731. package/lib/ocaml/js_null_undefined.cmi +0 -0
  732. package/lib/ocaml/js_null_undefined.cmt +0 -0
  733. package/lib/ocaml/js_null_undefined.cmti +0 -0
  734. package/lib/ocaml/js_null_undefined.ml +50 -0
  735. package/lib/ocaml/js_null_undefined.mli +85 -0
  736. package/lib/ocaml/js_obj.cmi +0 -0
  737. package/lib/ocaml/js_obj.cmt +0 -0
  738. package/lib/ocaml/js_obj.ml +100 -0
  739. package/lib/ocaml/js_option.cmi +0 -0
  740. package/lib/ocaml/js_option.cmt +0 -0
  741. package/lib/ocaml/js_option.cmti +0 -0
  742. package/lib/ocaml/js_option.ml +203 -0
  743. package/lib/ocaml/js_option.mli +52 -0
  744. package/lib/ocaml/js_promise.cmi +0 -0
  745. package/lib/ocaml/js_promise.cmt +0 -0
  746. package/lib/ocaml/js_promise.ml +100 -0
  747. package/lib/ocaml/js_re.cmi +0 -0
  748. package/lib/ocaml/js_re.cmt +0 -0
  749. package/lib/ocaml/js_re.ml +184 -0
  750. package/lib/ocaml/js_result.cmi +0 -0
  751. package/lib/ocaml/js_result.cmt +0 -0
  752. package/lib/ocaml/js_result.cmti +0 -0
  753. package/lib/ocaml/js_result.ml +28 -0
  754. package/lib/ocaml/js_result.mli +28 -0
  755. package/lib/ocaml/js_set.cmi +0 -0
  756. package/lib/ocaml/js_set.cmt +0 -0
  757. package/lib/ocaml/js_set.ml +3 -0
  758. package/lib/ocaml/js_string.cmi +0 -0
  759. package/lib/ocaml/js_string.cmt +0 -0
  760. package/lib/ocaml/js_string.ml +914 -0
  761. package/lib/ocaml/js_string2.cmi +0 -0
  762. package/lib/ocaml/js_string2.cmt +0 -0
  763. package/lib/ocaml/js_string2.ml +912 -0
  764. package/lib/ocaml/js_typed_array.cmi +0 -0
  765. package/lib/ocaml/js_typed_array.cmt +0 -0
  766. package/lib/ocaml/js_typed_array.cppo.ml +429 -0
  767. package/lib/ocaml/js_typed_array.ml +1405 -0
  768. package/lib/ocaml/js_typed_array2.cmi +0 -0
  769. package/lib/ocaml/js_typed_array2.cmt +0 -0
  770. package/lib/ocaml/js_typed_array2.cppo.ml +296 -0
  771. package/lib/ocaml/js_typed_array2.ml +1269 -0
  772. package/lib/ocaml/js_types.cmi +0 -0
  773. package/lib/ocaml/js_types.cmt +0 -0
  774. package/lib/ocaml/js_types.cmti +0 -0
  775. package/lib/ocaml/js_types.ml +118 -0
  776. package/lib/ocaml/js_types.mli +78 -0
  777. package/lib/ocaml/js_undefined.cmi +0 -0
  778. package/lib/ocaml/js_undefined.cmt +0 -0
  779. package/lib/ocaml/js_undefined.cmti +0 -0
  780. package/lib/ocaml/js_undefined.ml +59 -0
  781. package/lib/ocaml/js_undefined.mli +92 -0
  782. package/lib/ocaml/js_vector.cmi +0 -0
  783. package/lib/ocaml/js_vector.cmt +0 -0
  784. package/lib/ocaml/js_vector.cmti +0 -0
  785. package/lib/ocaml/js_vector.ml +143 -0
  786. package/lib/ocaml/js_vector.mli +92 -0
  787. package/lib/ocaml/js_weakmap.cmi +0 -0
  788. package/lib/ocaml/js_weakmap.cmt +0 -0
  789. package/lib/ocaml/js_weakmap.ml +3 -0
  790. package/lib/ocaml/js_weakset.cmi +0 -0
  791. package/lib/ocaml/js_weakset.cmt +0 -0
  792. package/lib/ocaml/js_weakset.ml +3 -0
  793. package/lib/ocaml/jsx.cmi +0 -0
  794. package/lib/ocaml/jsx.cmt +0 -0
  795. package/lib/ocaml/jsx.ml +39 -0
  796. package/lib/ocaml/jsxDOM.cmi +0 -0
  797. package/lib/ocaml/jsxDOM.cmt +0 -0
  798. package/lib/ocaml/jsxDOM.ml +2087 -0
  799. package/lib/ocaml/jsxDOMStyle.cmi +0 -0
  800. package/lib/ocaml/jsxDOMStyle.cmt +0 -0
  801. package/lib/ocaml/jsxDOMStyle.ml +777 -0
  802. package/lib/ocaml/jsxEvent.cmi +0 -0
  803. package/lib/ocaml/jsxEvent.cmt +0 -0
  804. package/lib/ocaml/jsxEvent.ml +358 -0
  805. package/lib/ocaml/lazy.cmi +0 -0
  806. package/lib/ocaml/lazy.cmt +0 -0
  807. package/lib/ocaml/lazy.cmti +0 -0
  808. package/lib/ocaml/lazy.ml +70 -0
  809. package/lib/ocaml/lazy.mli +95 -0
  810. package/lib/ocaml/lexing.cmi +0 -0
  811. package/lib/ocaml/lexing.cmt +0 -0
  812. package/lib/ocaml/lexing.cmti +0 -0
  813. package/lib/ocaml/lexing.ml +230 -0
  814. package/lib/ocaml/lexing.mli +172 -0
  815. package/lib/ocaml/list.cmi +0 -0
  816. package/lib/ocaml/list.cmt +0 -0
  817. package/lib/ocaml/list.cmti +0 -0
  818. package/lib/ocaml/list.ml +485 -0
  819. package/lib/ocaml/list.mli +347 -0
  820. package/lib/ocaml/listLabels.cmi +0 -0
  821. package/lib/ocaml/listLabels.cmt +0 -0
  822. package/lib/ocaml/listLabels.cmti +0 -0
  823. package/lib/ocaml/listLabels.ml +485 -0
  824. package/lib/ocaml/listLabels.mli +353 -0
  825. package/lib/ocaml/map.cmi +0 -0
  826. package/lib/ocaml/map.cmt +0 -0
  827. package/lib/ocaml/map.cmti +0 -0
  828. package/lib/ocaml/map.cppo.ml +174 -0
  829. package/lib/ocaml/map.cppo.mli +191 -0
  830. package/lib/ocaml/map.ml +480 -0
  831. package/lib/ocaml/map.mli +315 -0
  832. package/lib/ocaml/mapLabels.cmi +0 -0
  833. package/lib/ocaml/mapLabels.cmt +0 -0
  834. package/lib/ocaml/mapLabels.ml +480 -0
  835. package/lib/ocaml/mapm.cppo.ml +177 -0
  836. package/lib/ocaml/mapm.cppo.mli +138 -0
  837. package/lib/ocaml/moreLabels.cmi +0 -0
  838. package/lib/ocaml/moreLabels.cmt +0 -0
  839. package/lib/ocaml/moreLabels.cmti +0 -0
  840. package/lib/ocaml/moreLabels.ml +22 -0
  841. package/lib/ocaml/moreLabels.mli +198 -0
  842. package/lib/ocaml/node.cmi +0 -0
  843. package/lib/ocaml/node.cmt +0 -0
  844. package/lib/ocaml/node.ml +84 -0
  845. package/lib/ocaml/node_buffer.cmi +0 -0
  846. package/lib/ocaml/node_buffer.cmt +0 -0
  847. package/lib/ocaml/node_buffer.ml +47 -0
  848. package/lib/ocaml/node_child_process.cmi +0 -0
  849. package/lib/ocaml/node_child_process.cmt +0 -0
  850. package/lib/ocaml/node_child_process.ml +50 -0
  851. package/lib/ocaml/node_fs.cmi +0 -0
  852. package/lib/ocaml/node_fs.cmt +0 -0
  853. package/lib/ocaml/node_fs.ml +153 -0
  854. package/lib/ocaml/node_module.cmi +0 -0
  855. package/lib/ocaml/node_module.cmt +0 -0
  856. package/lib/ocaml/node_module.ml +29 -0
  857. package/lib/ocaml/node_path.cmi +0 -0
  858. package/lib/ocaml/node_path.cmt +0 -0
  859. package/lib/ocaml/node_path.ml +71 -0
  860. package/lib/ocaml/node_process.cmi +0 -0
  861. package/lib/ocaml/node_process.cmt +0 -0
  862. package/lib/ocaml/node_process.cmti +0 -0
  863. package/lib/ocaml/node_process.ml +59 -0
  864. package/lib/ocaml/node_process.mli +48 -0
  865. package/lib/ocaml/obj.cmi +0 -0
  866. package/lib/ocaml/obj.cmt +0 -0
  867. package/lib/ocaml/obj.cmti +0 -0
  868. package/lib/ocaml/obj.ml +29 -0
  869. package/lib/ocaml/obj.mli +62 -0
  870. package/lib/ocaml/parsing.cmi +0 -0
  871. package/lib/ocaml/parsing.cmt +0 -0
  872. package/lib/ocaml/parsing.cmti +0 -0
  873. package/lib/ocaml/parsing.ml +212 -0
  874. package/lib/ocaml/parsing.mli +105 -0
  875. package/lib/ocaml/pervasives.cmi +0 -0
  876. package/lib/ocaml/pervasives.cmt +0 -0
  877. package/lib/ocaml/pervasives.cmti +0 -0
  878. package/lib/ocaml/pervasives.ml +297 -0
  879. package/lib/ocaml/pervasives.mli +771 -0
  880. package/lib/ocaml/printexc.cmi +0 -0
  881. package/lib/ocaml/printexc.cmt +0 -0
  882. package/lib/ocaml/printexc.cmti +0 -0
  883. package/lib/ocaml/printexc.ml +79 -0
  884. package/lib/ocaml/printexc.mli +57 -0
  885. package/lib/ocaml/queue.cmi +0 -0
  886. package/lib/ocaml/queue.cmt +0 -0
  887. package/lib/ocaml/queue.cmti +0 -0
  888. package/lib/ocaml/queue.ml +132 -0
  889. package/lib/ocaml/queue.mli +82 -0
  890. package/lib/ocaml/random.cmi +0 -0
  891. package/lib/ocaml/random.cmt +0 -0
  892. package/lib/ocaml/random.cmti +0 -0
  893. package/lib/ocaml/random.ml +273 -0
  894. package/lib/ocaml/random.mli +102 -0
  895. package/lib/ocaml/set.cmi +0 -0
  896. package/lib/ocaml/set.cmt +0 -0
  897. package/lib/ocaml/set.cmti +0 -0
  898. package/lib/ocaml/set.ml +526 -0
  899. package/lib/ocaml/set.mli +266 -0
  900. package/lib/ocaml/setLabels.cmi +0 -0
  901. package/lib/ocaml/setLabels.cmt +0 -0
  902. package/lib/ocaml/setLabels.ml +526 -0
  903. package/lib/ocaml/setm.cppo.ml +346 -0
  904. package/lib/ocaml/setm.cppo.mli +126 -0
  905. package/lib/ocaml/sort.cmi +0 -0
  906. package/lib/ocaml/sort.cmt +0 -0
  907. package/lib/ocaml/sort.cmti +0 -0
  908. package/lib/ocaml/sort.cppo.ml +267 -0
  909. package/lib/ocaml/sort.cppo.mli +96 -0
  910. package/lib/ocaml/sort.ml +99 -0
  911. package/lib/ocaml/sort.mli +44 -0
  912. package/lib/ocaml/stack.cmi +0 -0
  913. package/lib/ocaml/stack.cmt +0 -0
  914. package/lib/ocaml/stack.cmti +0 -0
  915. package/lib/ocaml/stack.ml +44 -0
  916. package/lib/ocaml/stack.mli +63 -0
  917. package/lib/ocaml/stdLabels.cmi +0 -0
  918. package/lib/ocaml/stdLabels.cmt +0 -0
  919. package/lib/ocaml/stdLabels.cmti +0 -0
  920. package/lib/ocaml/stdLabels.ml +24 -0
  921. package/lib/ocaml/stdLabels.mli +29 -0
  922. package/lib/ocaml/stream.cmi +0 -0
  923. package/lib/ocaml/stream.cmt +0 -0
  924. package/lib/ocaml/stream.cmti +0 -0
  925. package/lib/ocaml/stream.ml +213 -0
  926. package/lib/ocaml/stream.mli +108 -0
  927. package/lib/ocaml/string.cmi +0 -0
  928. package/lib/ocaml/string.cmt +0 -0
  929. package/lib/ocaml/string.cmti +0 -0
  930. package/lib/ocaml/string.ml +190 -0
  931. package/lib/ocaml/string.mli +286 -0
  932. package/lib/ocaml/stringLabels.cmi +0 -0
  933. package/lib/ocaml/stringLabels.cmt +0 -0
  934. package/lib/ocaml/stringLabels.cmti +0 -0
  935. package/lib/ocaml/stringLabels.ml +190 -0
  936. package/lib/ocaml/stringLabels.mli +241 -0
  937. package/lib/ocaml/sys.cmi +0 -0
  938. package/lib/ocaml/sys.cmt +0 -0
  939. package/lib/ocaml/sys.cmti +0 -0
  940. package/lib/ocaml/sys.ml +135 -0
  941. package/lib/ocaml/sys.mli +333 -0
  942. package/lib/ocaml/uchar.cmi +0 -0
  943. package/lib/ocaml/uchar.cmt +0 -0
  944. package/lib/ocaml/uchar.cmti +0 -0
  945. package/lib/ocaml/uchar.ml +58 -0
  946. package/lib/ocaml/uchar.mli +98 -0
  947. package/linux/bsb_helper.exe +0 -0
  948. package/linux/bsc.exe +0 -0
  949. package/linux/ninja.COPYING +202 -0
  950. package/linux/ninja.exe +0 -0
  951. package/linux/refmt.exe +0 -0
  952. package/linux/rescript.exe +0 -0
  953. package/openbsd/.keep +0 -0
  954. package/package.json +71 -0
  955. package/rescript +591 -0
  956. package/scripts/LICENSE.ml +27 -0
  957. package/scripts/bin_path.js +38 -0
  958. package/scripts/buckle_lto.js +55 -0
  959. package/scripts/build_sorted.ml +233 -0
  960. package/scripts/buildocaml.js +102 -0
  961. package/scripts/caml_oo_curry_gen.ml +71 -0
  962. package/scripts/checkUnused.js +63 -0
  963. package/scripts/ciTest.js +172 -0
  964. package/scripts/config.js +24 -0
  965. package/scripts/cover.sh +3 -0
  966. package/scripts/curry_gen.ml +167 -0
  967. package/scripts/dbg +13 -0
  968. package/scripts/dedupe.js +44 -0
  969. package/scripts/doc_gen.js +117 -0
  970. package/scripts/install.js +237 -0
  971. package/scripts/installUtils.js +61 -0
  972. package/scripts/js_internal_gen.js +135 -0
  973. package/scripts/jsconfig.json +12 -0
  974. package/scripts/littlecase.js +21 -0
  975. package/scripts/ninja.js +1980 -0
  976. package/scripts/ninjaFactory.js +36 -0
  977. package/scripts/pack.js +107 -0
  978. package/scripts/prebuilt.js +99 -0
  979. package/scripts/release.js +41 -0
  980. package/scripts/repl.js +151 -0
  981. package/scripts/rescript_arg.js +168 -0
  982. package/scripts/rescript_convert.js +128 -0
  983. package/scripts/rescript_dump.js +48 -0
  984. package/scripts/rescript_format.js +194 -0
  985. package/scripts/shake.js +138 -0
  986. package/scripts/tasks.js +149 -0
  987. package/scripts/test.sh +3 -0
  988. package/scripts/tmp.js +98 -0
  989. package/scripts/validate.js +41 -0
  990. package/vendor/ninja.tar.gz +0 -0
  991. package/vendor/ocaml.tar.gz +0 -0
  992. package/win32/bsb_helper.exe +0 -0
  993. package/win32/bsc.exe +0 -0
  994. package/win32/ninja.COPYING +202 -0
  995. package/win32/ninja.exe +0 -0
  996. package/win32/refmt.exe +0 -0
  997. package/win32/rescript.exe +0 -0
@@ -0,0 +1,771 @@
1
+ (**************************************************************************)
2
+ (* *)
3
+ (* OCaml *)
4
+ (* *)
5
+ (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
6
+ (* *)
7
+ (* Copyright 1996 Institut National de Recherche en Informatique et *)
8
+ (* en Automatique. *)
9
+ (* *)
10
+ (* All rights reserved. This file is distributed under the terms of *)
11
+ (* the GNU Lesser General Public License version 2.1, with the *)
12
+ (* special exception on linking described in the file LICENSE. *)
13
+ (* *)
14
+ (**************************************************************************)
15
+
16
+ (** The initially opened module.
17
+
18
+ This module provides the basic operations over the built-in types
19
+ (numbers, booleans, byte sequences, strings, exceptions, references,
20
+ lists, arrays, input-output channels, ...).
21
+
22
+ This module is automatically opened at the beginning of each compilation.
23
+ All components of this module can therefore be referred by their short
24
+ name, without prefixing them by [Pervasives].
25
+ *)
26
+
27
+
28
+ (* Internal *)
29
+ external __unsafe_cast : 'a -> 'b = "%identity"
30
+
31
+ (** {1 Exceptions} *)
32
+
33
+ external raise : exn -> 'a = "%raise"
34
+ (** Raise the given exception value *)
35
+
36
+ external raise_notrace : exn -> 'a = "%raise_notrace"
37
+ (** A faster version [raise] which does not record the backtrace.
38
+ @since 4.02.0
39
+ *)
40
+
41
+ val invalid_arg : string -> 'a
42
+ (** Raise exception [Invalid_argument] with the given string. *)
43
+
44
+ val failwith : string -> 'a
45
+ (** Raise exception [Failure] with the given string. *)
46
+
47
+ exception Exit
48
+ (** The [Exit] exception is not raised by any library function. It is
49
+ provided for use in your programs. *)
50
+
51
+
52
+ (** {1 Comparisons} *)
53
+
54
+ external ( = ) : 'a -> 'a -> bool = "%equal"
55
+ (** [e1 = e2] tests for structural equality of [e1] and [e2].
56
+ Mutable structures (e.g. references and arrays) are equal
57
+ if and only if their current contents are structurally equal,
58
+ even if the two mutable objects are not the same physical object.
59
+ Equality between functional values raises [Invalid_argument].
60
+ Equality between cyclic data structures may not terminate.
61
+ Left-associative operator at precedence level 4/11. *)
62
+
63
+ external ( <> ) : 'a -> 'a -> bool = "%notequal"
64
+ (** Negation of {!Pervasives.( = )}.
65
+ Left-associative operator at precedence level 4/11. *)
66
+
67
+ external ( < ) : 'a -> 'a -> bool = "%lessthan"
68
+ (** See {!Pervasives.( >= )}.
69
+ Left-associative operator at precedence level 4/11. *)
70
+
71
+ external ( > ) : 'a -> 'a -> bool = "%greaterthan"
72
+ (** See {!Pervasives.( >= )}.
73
+ Left-associative operator at precedence level 4/11. *)
74
+
75
+ external ( <= ) : 'a -> 'a -> bool = "%lessequal"
76
+ (** See {!Pervasives.( >= )}.
77
+ Left-associative operator at precedence level 4/11. *)
78
+
79
+ external ( >= ) : 'a -> 'a -> bool = "%greaterequal"
80
+ (** Structural ordering functions. These functions coincide with
81
+ the usual orderings over integers, characters, strings, byte sequences
82
+ and floating-point numbers, and extend them to a
83
+ total ordering over all types.
84
+ The ordering is compatible with [( = )]. As in the case
85
+ of [( = )], mutable structures are compared by contents.
86
+ Comparison between functional values raises [Invalid_argument].
87
+ Comparison between cyclic structures may not terminate.
88
+ Left-associative operator at precedence level 4/11. *)
89
+
90
+ external compare : 'a -> 'a -> int = "%compare"
91
+ (** [compare x y] returns [0] if [x] is equal to [y],
92
+ a negative integer if [x] is less than [y], and a positive integer
93
+ if [x] is greater than [y]. The ordering implemented by [compare]
94
+ is compatible with the comparison predicates [=], [<] and [>]
95
+ defined above, with one difference on the treatment of the float value
96
+ {!Pervasives.nan}. Namely, the comparison predicates treat [nan]
97
+ as different from any other float value, including itself;
98
+ while [compare] treats [nan] as equal to itself and less than any
99
+ other float value. This treatment of [nan] ensures that [compare]
100
+ defines a total ordering relation.
101
+
102
+ [compare] applied to functional values may raise [Invalid_argument].
103
+ [compare] applied to cyclic structures may not terminate.
104
+
105
+ The [compare] function can be used as the comparison function
106
+ required by the {!Set.Make} and {!Map.Make} functors, as well as
107
+ the {!List.sort} and {!Array.sort} functions. *)
108
+
109
+ external min : 'a -> 'a -> 'a = "%bs_min"
110
+ (** Return the smaller of the two arguments.
111
+ The result is unspecified if one of the arguments contains
112
+ the float value [nan]. *)
113
+
114
+ external max : 'a -> 'a -> 'a = "%bs_max"
115
+ (** Return the greater of the two arguments.
116
+ The result is unspecified if one of the arguments contains
117
+ the float value [nan]. *)
118
+
119
+ external ( == ) : 'a -> 'a -> bool = "%eq"
120
+ (** [e1 == e2] tests for physical equality of [e1] and [e2].
121
+ On mutable types such as references, arrays, byte sequences, records with
122
+ mutable fields and objects with mutable instance variables,
123
+ [e1 == e2] is true if and only if physical modification of [e1]
124
+ also affects [e2].
125
+ On non-mutable types, the behavior of [( == )] is
126
+ implementation-dependent; however, it is guaranteed that
127
+ [e1 == e2] implies [compare e1 e2 = 0].
128
+ Left-associative operator at precedence level 4/11. *)
129
+
130
+ external ( != ) : 'a -> 'a -> bool = "%noteq"
131
+ (** Negation of {!Pervasives.( == )}.
132
+ Left-associative operator at precedence level 4/11. *)
133
+
134
+
135
+ (** {1 Boolean operations} *)
136
+
137
+ external not : bool -> bool = "%boolnot"
138
+ (** The boolean negation. *)
139
+
140
+ external ( && ) : bool -> bool -> bool = "%sequand"
141
+ (** The boolean 'and'. Evaluation is sequential, left-to-right:
142
+ in [e1 && e2], [e1] is evaluated first, and if it returns [false],
143
+ [e2] is not evaluated at all.
144
+ Right-associative operator at precedence level 3/11. *)
145
+
146
+
147
+ external ( || ) : bool -> bool -> bool = "%sequor"
148
+ (** The boolean 'or'. Evaluation is sequential, left-to-right:
149
+ in [e1 || e2], [e1] is evaluated first, and if it returns [true],
150
+ [e2] is not evaluated at all.
151
+ Right-associative operator at precedence level 2/11.
152
+ *)
153
+
154
+
155
+ (** {1 Debugging} *)
156
+
157
+ external __LOC__ : string = "%loc_LOC"
158
+ (** [__LOC__] returns the location at which this expression appears in
159
+ the file currently being parsed by the compiler, with the standard
160
+ error format of OCaml: "File %S, line %d, characters %d-%d".
161
+ @since 4.02.0
162
+ *)
163
+
164
+ external __FILE__ : string = "%loc_FILE"
165
+ (** [__FILE__] returns the name of the file currently being
166
+ parsed by the compiler.
167
+ @since 4.02.0
168
+ *)
169
+
170
+ external __LINE__ : int = "%loc_LINE"
171
+ (** [__LINE__] returns the line number at which this expression
172
+ appears in the file currently being parsed by the compiler.
173
+ @since 4.02.0
174
+ *)
175
+
176
+ external __MODULE__ : string = "%loc_MODULE"
177
+ (** [__MODULE__] returns the module name of the file being
178
+ parsed by the compiler.
179
+ @since 4.02.0
180
+ *)
181
+
182
+ external __POS__ : string * int * int * int = "%loc_POS"
183
+ (** [__POS__] returns a tuple [(file,lnum,cnum,enum)], corresponding
184
+ to the location at which this expression appears in the file
185
+ currently being parsed by the compiler. [file] is the current
186
+ filename, [lnum] the line number, [cnum] the character position in
187
+ the line and [enum] the last character position in the line.
188
+ @since 4.02.0
189
+ *)
190
+
191
+ external __LOC_OF__ : 'a -> string * 'a = "%loc_LOC"
192
+ (** [__LOC_OF__ expr] returns a pair [(loc, expr)] where [loc] is the
193
+ location of [expr] in the file currently being parsed by the
194
+ compiler, with the standard error format of OCaml: "File %S, line
195
+ %d, characters %d-%d".
196
+ @since 4.02.0
197
+ *)
198
+
199
+ external __LINE_OF__ : 'a -> int * 'a = "%loc_LINE"
200
+ (** [__LINE__ expr] returns a pair [(line, expr)], where [line] is the
201
+ line number at which the expression [expr] appears in the file
202
+ currently being parsed by the compiler.
203
+ @since 4.02.0
204
+ *)
205
+
206
+ external __POS_OF__ : 'a -> (string * int * int * int) * 'a = "%loc_POS"
207
+ (** [__POS_OF__ expr] returns a pair [(loc,expr)], where [loc] is a
208
+ tuple [(file,lnum,cnum,enum)] corresponding to the location at
209
+ which the expression [expr] appears in the file currently being
210
+ parsed by the compiler. [file] is the current filename, [lnum] the
211
+ line number, [cnum] the character position in the line and [enum]
212
+ the last character position in the line.
213
+ @since 4.02.0
214
+ *)
215
+
216
+ (** {1 Composition operators} *)
217
+
218
+ external ( |> ) : 'a -> ('a -> 'b) -> 'b = "%revapply"
219
+ (** Reverse-application operator: [x |> f |> g] is exactly equivalent
220
+ to [g (f (x))].
221
+ Left-associative operator at precedence level 4/11.
222
+ @since 4.01
223
+ *)
224
+
225
+ external ( @@ ) : ('a -> 'b) -> 'a -> 'b = "%apply"
226
+ (** Application operator: [g @@ f @@ x] is exactly equivalent to
227
+ [g (f (x))].
228
+ Right-associative operator at precedence level 5/11.
229
+ @since 4.01
230
+ *)
231
+
232
+ (** {1 Integer arithmetic} *)
233
+
234
+ (** Integers are 31 bits wide (or 63 bits on 64-bit processors).
235
+ All operations are taken modulo 2{^31} (or 2{^63}).
236
+ They do not fail on overflow. *)
237
+
238
+ external ( ~- ) : int -> int = "%negint"
239
+ (** Unary negation. You can also write [- e] instead of [~- e].
240
+ Unary operator at precedence level 9/11 for [- e]
241
+ and 11/11 for [~- e]. *)
242
+
243
+ external ( ~+ ) : int -> int = "%identity"
244
+ (** Unary addition. You can also write [+ e] instead of [~+ e].
245
+ Unary operator at precedence level 9/11 for [+ e]
246
+ and 11/11 for [~+ e].
247
+ @since 3.12.0
248
+ *)
249
+
250
+ external succ : int -> int = "%succint"
251
+ (** [succ x] is [x + 1]. *)
252
+
253
+ external pred : int -> int = "%predint"
254
+ (** [pred x] is [x - 1]. *)
255
+
256
+ external ( + ) : int -> int -> int = "%addint"
257
+ (** Integer addition.
258
+ Left-associative operator at precedence level 6/11. *)
259
+
260
+ external ( - ) : int -> int -> int = "%subint"
261
+ (** Integer subtraction.
262
+ Left-associative operator at precedence level 6/11. *)
263
+
264
+ external ( * ) : int -> int -> int = "%mulint"
265
+ (** Integer multiplication.
266
+ Left-associative operator at precedence level 7/11. *)
267
+
268
+ external ( / ) : int -> int -> int = "%divint"
269
+ (** Integer division.
270
+ Raise [Division_by_zero] if the second argument is 0.
271
+ Integer division rounds the real quotient of its arguments towards zero.
272
+ More precisely, if [x >= 0] and [y > 0], [x / y] is the greatest integer
273
+ less than or equal to the real quotient of [x] by [y]. Moreover,
274
+ [(- x) / y = x / (- y) = - (x / y)].
275
+ Left-associative operator at precedence level 7/11. *)
276
+
277
+ external ( mod ) : int -> int -> int = "%modint"
278
+ (** Integer remainder. If [y] is not zero, the result
279
+ of [x mod y] satisfies the following properties:
280
+ [x = (x / y) * y + x mod y] and
281
+ [abs(x mod y) <= abs(y) - 1].
282
+ If [y = 0], [x mod y] raises [Division_by_zero].
283
+ Note that [x mod y] is negative only if [x < 0].
284
+ Raise [Division_by_zero] if [y] is zero.
285
+ Left-associative operator at precedence level 7/11. *)
286
+
287
+ val abs : int -> int
288
+ (** Return the absolute value of the argument. Note that this may be
289
+ negative if the argument is [min_int]. *)
290
+
291
+ val max_int : int
292
+ (** The greatest representable integer. *)
293
+
294
+ val min_int : int
295
+ (** The smallest representable integer. *)
296
+
297
+
298
+ (** {2 Bitwise operations} *)
299
+
300
+ external ( land ) : int -> int -> int = "%andint"
301
+ (** Bitwise logical and.
302
+ Left-associative operator at precedence level 7/11. *)
303
+
304
+ external ( lor ) : int -> int -> int = "%orint"
305
+ (** Bitwise logical or.
306
+ Left-associative operator at precedence level 7/11. *)
307
+
308
+ external ( lxor ) : int -> int -> int = "%xorint"
309
+ (** Bitwise logical exclusive or.
310
+ Left-associative operator at precedence level 7/11. *)
311
+
312
+ val lnot : int -> int
313
+ (** Bitwise logical negation. *)
314
+
315
+ external ( lsl ) : int -> int -> int = "%lslint"
316
+ (** [n lsl m] shifts [n] to the left by [m] bits.
317
+ The result is unspecified if [m < 0] or [m >= bitsize],
318
+ where [bitsize] is [32] on a 32-bit platform and
319
+ [64] on a 64-bit platform.
320
+ Right-associative operator at precedence level 8/11. *)
321
+
322
+ external ( lsr ) : int -> int -> int = "%lsrint"
323
+ (** [n lsr m] shifts [n] to the right by [m] bits.
324
+ This is a logical shift: zeroes are inserted regardless of
325
+ the sign of [n].
326
+ The result is unspecified if [m < 0] or [m >= bitsize].
327
+ Right-associative operator at precedence level 8/11. *)
328
+
329
+ external ( asr ) : int -> int -> int = "%asrint"
330
+ (** [n asr m] shifts [n] to the right by [m] bits.
331
+ This is an arithmetic shift: the sign bit of [n] is replicated.
332
+ The result is unspecified if [m < 0] or [m >= bitsize].
333
+ Right-associative operator at precedence level 8/11. *)
334
+
335
+
336
+ (** {1 Floating-point arithmetic}
337
+
338
+ OCaml's floating-point numbers follow the
339
+ IEEE 754 standard, using double precision (64 bits) numbers.
340
+ Floating-point operations never raise an exception on overflow,
341
+ underflow, division by zero, etc. Instead, special IEEE numbers
342
+ are returned as appropriate, such as [infinity] for [1.0 /. 0.0],
343
+ [neg_infinity] for [-1.0 /. 0.0], and [nan] ('not a number')
344
+ for [0.0 /. 0.0]. These special numbers then propagate through
345
+ floating-point computations as expected: for instance,
346
+ [1.0 /. infinity] is [0.0], and any arithmetic operation with [nan]
347
+ as argument returns [nan] as result.
348
+ *)
349
+
350
+ external ( ~-. ) : float -> float = "%negfloat"
351
+ (** Unary negation. You can also write [-. e] instead of [~-. e].
352
+ Unary operator at precedence level 9/11 for [-. e]
353
+ and 11/11 for [~-. e]. *)
354
+
355
+ external ( ~+. ) : float -> float = "%identity"
356
+ (** Unary addition. You can also write [+. e] instead of [~+. e].
357
+ Unary operator at precedence level 9/11 for [+. e]
358
+ and 11/11 for [~+. e].
359
+ @since 3.12.0
360
+ *)
361
+
362
+ external ( +. ) : float -> float -> float = "%addfloat"
363
+ (** Floating-point addition.
364
+ Left-associative operator at precedence level 6/11. *)
365
+
366
+ external ( -. ) : float -> float -> float = "%subfloat"
367
+ (** Floating-point subtraction.
368
+ Left-associative operator at precedence level 6/11. *)
369
+
370
+ external ( *. ) : float -> float -> float = "%mulfloat"
371
+ (** Floating-point multiplication.
372
+ Left-associative operator at precedence level 7/11. *)
373
+
374
+ external ( /. ) : float -> float -> float = "%divfloat"
375
+ (** Floating-point division.
376
+ Left-associative operator at precedence level 7/11. *)
377
+
378
+ external ( ** ) : float -> float -> float = "pow" [@@bs.val] [@@bs.scope "Math"]
379
+ (** Exponentiation. *)
380
+
381
+ external sqrt : float -> float = "sqrt" [@@bs.val] [@@bs.scope "Math"]
382
+ (** Square root. *)
383
+
384
+ external exp : float -> float = "exp" [@@bs.val] [@@bs.scope "Math"]
385
+ (** Exponential. *)
386
+
387
+ external log : float -> float = "log" [@@bs.val] [@@bs.scope "Math"]
388
+ (** Natural logarithm. *)
389
+
390
+ external log10 : float -> float = "log10" [@@bs.val] [@@bs.scope "Math"]
391
+ (** Base 10 logarithm. *)
392
+
393
+ external expm1 : float -> float = "?expm1_float"
394
+ (** [expm1 x] computes [exp x -. 1.0], giving numerically-accurate results
395
+ even if [x] is close to [0.0].
396
+ @since 3.12.0
397
+ *)
398
+
399
+ external log1p : float -> float = "log1p" [@@bs.val] [@@bs.scope "Math"]
400
+ (** [log1p x] computes [log(1.0 +. x)] (natural logarithm),
401
+ giving numerically-accurate results even if [x] is close to [0.0].
402
+ @since 3.12.0
403
+ *)
404
+
405
+ external cos : float -> float = "cos" [@@bs.val] [@@bs.scope "Math"]
406
+ (** Cosine. Argument is in radians. *)
407
+
408
+ external sin : float -> float = "sin" [@@bs.val] [@@bs.scope "Math"]
409
+ (** Sine. Argument is in radians. *)
410
+
411
+ external tan : float -> float = "tan" [@@bs.val] [@@bs.scope "Math"]
412
+ (** Tangent. Argument is in radians. *)
413
+
414
+ external acos : float -> float = "acos" [@@bs.val] [@@bs.scope "Math"]
415
+ (** Arc cosine. The argument must fall within the range [[-1.0, 1.0]].
416
+ Result is in radians and is between [0.0] and [pi]. *)
417
+
418
+ external asin : float -> float = "asin" [@@bs.val] [@@bs.scope "Math"]
419
+ (** Arc sine. The argument must fall within the range [[-1.0, 1.0]].
420
+ Result is in radians and is between [-pi/2] and [pi/2]. *)
421
+
422
+ external atan : float -> float = "atan" [@@bs.val] [@@bs.scope "Math"]
423
+ (** Arc tangent.
424
+ Result is in radians and is between [-pi/2] and [pi/2]. *)
425
+
426
+ external atan2 : float -> float -> float = "atan2" [@@bs.val] [@@bs.scope "Math"]
427
+ (** [atan2 y x] returns the arc tangent of [y /. x]. The signs of [x]
428
+ and [y] are used to determine the quadrant of the result.
429
+ Result is in radians and is between [-pi] and [pi]. *)
430
+
431
+ external hypot : float -> float -> float
432
+ = "?hypot_float"
433
+ (** [hypot x y] returns [sqrt(x *. x + y *. y)], that is, the length
434
+ of the hypotenuse of a right-angled triangle with sides of length
435
+ [x] and [y], or, equivalently, the distance of the point [(x,y)]
436
+ to origin.
437
+ @since 4.00.0 *)
438
+
439
+ external cosh : float -> float = "cosh" [@@bs.val] [@@bs.scope "Math"]
440
+ (** Hyperbolic cosine. Argument is in radians. *)
441
+
442
+ external sinh : float -> float = "sinh" [@@bs.val] [@@bs.scope "Math"]
443
+ (** Hyperbolic sine. Argument is in radians. *)
444
+
445
+ external tanh : float -> float = "tanh" [@@bs.val] [@@bs.scope "Math"]
446
+ (** Hyperbolic tangent. Argument is in radians. *)
447
+
448
+ external ceil : float -> float = "ceil" [@@bs.val] [@@bs.scope "Math"]
449
+ (** Round above to an integer value.
450
+ [ceil f] returns the least integer value greater than or equal to [f].
451
+ The result is returned as a float. *)
452
+
453
+ external floor : float -> float = "floor" [@@bs.val] [@@bs.scope "Math"]
454
+ (** Round below to an integer value.
455
+ [floor f] returns the greatest integer value less than or
456
+ equal to [f].
457
+ The result is returned as a float. *)
458
+
459
+ external abs_float : float -> float = "abs" [@@bs.val] [@@bs.scope "Math"]
460
+ (** [abs_float f] returns the absolute value of [f]. *)
461
+
462
+ external copysign : float -> float -> float
463
+ = "?copysign_float"
464
+ (** [copysign x y] returns a float whose absolute value is that of [x]
465
+ and whose sign is that of [y]. If [x] is [nan], returns [nan].
466
+ If [y] is [nan], returns either [x] or [-. x], but it is not
467
+ specified which.
468
+ @since 4.00.0 *)
469
+
470
+ external mod_float : float -> float -> float = "?fmod_float"
471
+ (** [mod_float a b] returns the remainder of [a] with respect to
472
+ [b]. The returned value is [a -. n *. b], where [n]
473
+ is the quotient [a /. b] rounded towards zero to an integer. *)
474
+
475
+ external frexp : float -> float * int = "?frexp_float"
476
+ (** [frexp f] returns the pair of the significant
477
+ and the exponent of [f]. When [f] is zero, the
478
+ significant [x] and the exponent [n] of [f] are equal to
479
+ zero. When [f] is non-zero, they are defined by
480
+ [f = x *. 2 ** n] and [0.5 <= x < 1.0]. *)
481
+
482
+
483
+ external ldexp : float -> int -> float =
484
+ "?ldexp_float"
485
+ (** [ldexp x n] returns [x *. 2 ** n]. *)
486
+
487
+ external modf : float -> float * float = "?modf_float"
488
+ (** [modf f] returns the pair of the fractional and integral
489
+ part of [f]. *)
490
+
491
+ external float : int -> float = "%floatofint"
492
+ (** Same as {!Pervasives.float_of_int}. *)
493
+
494
+ external float_of_int : int -> float = "%floatofint"
495
+ (** Convert an integer to floating-point. *)
496
+
497
+ external truncate : float -> int = "%intoffloat"
498
+ (** Same as {!Pervasives.int_of_float}. *)
499
+
500
+ external int_of_float : float -> int = "%intoffloat"
501
+ (** Truncate the given floating-point number to an integer.
502
+ The result is unspecified if the argument is [nan] or falls outside the
503
+ range of representable integers. *)
504
+
505
+ val infinity : float
506
+ (** Positive infinity. *)
507
+
508
+ val neg_infinity : float
509
+ (** Negative infinity. *)
510
+
511
+
512
+ external nan : float = "NaN" [@@bs.val] [@@bs.scope "Number"]
513
+ (* we could also use [0. /. 0.] *)
514
+ (** A special floating-point value denoting the result of an
515
+ undefined operation such as [0.0 /. 0.0]. Stands for
516
+ 'not a number'. Any floating-point operation with [nan] as
517
+ argument returns [nan] as result. As for floating-point comparisons,
518
+ [=], [<], [<=], [>] and [>=] return [false] and [<>] returns [true]
519
+ if one or both of their arguments is [nan]. *)
520
+
521
+ val max_float : float
522
+ (** The largest positive finite value of type [float]. *)
523
+
524
+ val min_float : float
525
+ (** The smallest positive, non-zero, non-denormalized value of type [float]. *)
526
+
527
+ val epsilon_float : float
528
+ (** The difference between [1.0] and the smallest exactly representable
529
+ floating-point number greater than [1.0]. *)
530
+
531
+
532
+ type fpclass =
533
+ FP_normal (** Normal number, none of the below *)
534
+ | FP_subnormal (** Number very close to 0.0, has reduced precision *)
535
+ | FP_zero (** Number is 0.0 or -0.0 *)
536
+ | FP_infinite (** Number is positive or negative infinity *)
537
+ | FP_nan (** Not a number: result of an undefined operation *)
538
+ (** The five classes of floating-point numbers, as determined by
539
+ the {!Pervasives.classify_float} function. *)
540
+
541
+ val classify_float : float -> fpclass
542
+ (** Return the class of the given floating-point number:
543
+ normal, subnormal, zero, infinite, or not a number. *)
544
+
545
+
546
+ (** {1 String operations}
547
+
548
+ More string operations are provided in module {!String}.
549
+ *)
550
+ external (^) : string -> string -> string = "#string_append"
551
+ (** String concatenation.
552
+ Right-associative operator at precedence level 5/11. *)
553
+
554
+
555
+ (** {1 Character operations}
556
+
557
+ More character operations are provided in module {!Char}.
558
+ *)
559
+
560
+ external int_of_char : char -> int = "%identity"
561
+ (** Return the ASCII code of the argument. *)
562
+
563
+ val char_of_int : int -> char
564
+ (** Return the character with the given ASCII code.
565
+ Raise [Invalid_argument "char_of_int"] if the argument is
566
+ outside the range 0--255. *)
567
+
568
+
569
+ (** {1 Unit operations} *)
570
+
571
+ external ignore : 'a -> unit = "%ignore"
572
+ (** Discard the value of its argument and return [()].
573
+ For instance, [ignore(f x)] discards the result of
574
+ the side-effecting function [f]. It is equivalent to
575
+ [f x; ()], except that the latter may generate a
576
+ compiler warning; writing [ignore(f x)] instead
577
+ avoids the warning. *)
578
+
579
+
580
+ (** {1 String conversion functions} *)
581
+
582
+ val string_of_bool : bool -> string
583
+ (** Return the string representation of a boolean. As the returned values
584
+ may be shared, the user should not modify them directly.
585
+ *)
586
+
587
+ val bool_of_string : string -> bool
588
+ (** Convert the given string to a boolean.
589
+ Raise [Invalid_argument "bool_of_string"] if the string is not
590
+ ["true"] or ["false"]. *)
591
+
592
+ val bool_of_string_opt: string -> bool option
593
+ (** Convert the given string to a boolean.
594
+ Return [None] if the string is not
595
+ ["true"] or ["false"].
596
+ @since 4.05
597
+ *)
598
+
599
+
600
+ external string_of_int : int -> string = "String" [@@bs.val]
601
+ (** Return the string representation of an integer, in decimal. *)
602
+
603
+ external int_of_string : string -> int = "?int_of_string"
604
+ (** Convert the given string to an integer.
605
+ The string is read in decimal (by default, or if the string
606
+ begins with [0u]), in hexadecimal (if it begins with [0x] or
607
+ [0X]), in octal (if it begins with [0o] or [0O]), or in binary
608
+ (if it begins with [0b] or [0B]).
609
+
610
+ The [0u] prefix reads the input as an unsigned integer in the range
611
+ [[0, 2*max_int+1]]. If the input exceeds {!max_int}
612
+ it is converted to the signed integer
613
+ [min_int + input - max_int - 1].
614
+
615
+ The [_] (underscore) character can appear anywhere in the string
616
+ and is ignored.
617
+ Raise [Failure "int_of_string"] if the given string is not
618
+ a valid representation of an integer, or if the integer represented
619
+ exceeds the range of integers representable in type [int]. *)
620
+
621
+
622
+ val int_of_string_opt: string -> int option
623
+ (** Same as [int_of_string], but returns [None] instead of raising.
624
+ @since 4.05
625
+ *)
626
+
627
+ val string_of_float : float -> string
628
+ [@@ocaml.deprecated "Please use Js.Float.toString instead, string_of_float generates unparseable floats"]
629
+ (** Return the string representation of a floating-point number. *)
630
+
631
+ external float_of_string : string -> float = "?float_of_string"
632
+ (** Convert the given string to a float. The string is read in decimal
633
+ (by default) or in hexadecimal (marked by [0x] or [0X]).
634
+ The format of decimal floating-point numbers is
635
+ [ [-] dd.ddd (e|E) [+|-] dd ], where [d] stands for a decimal digit.
636
+ The format of hexadecimal floating-point numbers is
637
+ [ [-] 0(x|X) hh.hhh (p|P) [+|-] dd ], where [h] stands for an
638
+ hexadecimal digit and [d] for a decimal digit.
639
+ In both cases, at least one of the integer and fractional parts must be
640
+ given; the exponent part is optional.
641
+ The [_] (underscore) character can appear anywhere in the string
642
+ and is ignored.
643
+ Depending on the execution platforms, other representations of
644
+ floating-point numbers can be accepted, but should not be relied upon.
645
+ Raise [Failure "float_of_string"] if the given string is not a valid
646
+ representation of a float. *)
647
+
648
+ val float_of_string_opt: string -> float option
649
+ (** Same as [float_of_string], but returns [None] instead of raising.
650
+ @since 4.05
651
+ *)
652
+
653
+ (** {1 Pair operations} *)
654
+
655
+ external fst : 'a * 'b -> 'a = "%field0"
656
+ (** Return the first component of a pair. *)
657
+
658
+ external snd : 'a * 'b -> 'b = "%field1"
659
+ (** Return the second component of a pair. *)
660
+
661
+
662
+ (** {1 List operations}
663
+
664
+ More list operations are provided in module {!List}.
665
+ *)
666
+
667
+ val ( @ ) : 'a list -> 'a list -> 'a list
668
+ [@@ocaml.deprecated "Use Belt.List.concat instead"]
669
+ (** List concatenation. Tail-recursive (length of the first argument).
670
+ Right-associative operator at precedence level 5/11. *)
671
+
672
+
673
+ type int32 = int
674
+
675
+
676
+
677
+
678
+
679
+ val print_string : string -> unit
680
+ (** Print a string on standard output. *)
681
+
682
+
683
+ val print_int : int -> unit
684
+ (** Print an integer, in decimal, on standard output. *)
685
+
686
+ val print_float : float -> unit
687
+ (** Print a floating-point number, in decimal, on standard output. *)
688
+ external print_endline : string -> unit = "log"
689
+ [@@bs.val] [@@bs.scope "console"]
690
+ (** Print a string, followed by a newline character, on
691
+ standard output and flush standard output. *)
692
+
693
+ val print_newline : unit -> unit
694
+ (** Print a newline character on standard output, and flush
695
+ standard output. This can be used to simulate line
696
+ buffering of standard output. *)
697
+
698
+
699
+ external prerr_endline : string -> unit = "error"
700
+ [@@bs.val] [@@bs.scope "console"]
701
+ (** Print a string, followed by a newline character on standard
702
+ error and flush standard error. *)
703
+
704
+ val prerr_newline : unit -> unit
705
+ (** Print a newline character on standard error, and flush
706
+ standard error. *)
707
+
708
+
709
+
710
+
711
+
712
+ (** {1 References} *)
713
+
714
+ type 'a ref = { mutable contents : 'a }
715
+ (** The type of references (mutable indirection cells) containing
716
+ a value of type ['a]. *)
717
+
718
+ external ref : 'a -> 'a ref = "%makemutable"
719
+ (** Return a fresh reference containing the given value. *)
720
+
721
+ external ( ! ) : 'a ref -> 'a = "%bs_ref_field0"
722
+ (** [!r] returns the current contents of reference [r].
723
+ Equivalent to [fun r -> r.contents].
724
+ Unary operator at precedence level 11/11.*)
725
+
726
+ external ( := ) : 'a ref -> 'a -> unit = "%bs_ref_setfield0"
727
+ (** [r := a] stores the value of [a] in reference [r].
728
+ Equivalent to [fun r v -> r.contents <- v].
729
+ Right-associative operator at precedence level 1/11. *)
730
+
731
+ external incr : int ref -> unit = "%incr"
732
+ (** Increment the integer contained in the given reference.
733
+ Equivalent to [fun r -> r := succ !r]. *)
734
+
735
+ external decr : int ref -> unit = "%decr"
736
+ (** Decrement the integer contained in the given reference.
737
+ Equivalent to [fun r -> r := pred !r]. *)
738
+
739
+ (** {1 Result type} *)
740
+
741
+ (** @since 4.03.0 *)
742
+ type ('a, 'b) result = ('a, 'b) Belt.Result.t =
743
+ | Ok of 'a
744
+ | Error of 'b
745
+
746
+
747
+ (** {1 Program termination} *)
748
+
749
+ val exit : int -> 'a
750
+ (** Terminate the process, returning the given status code
751
+ to the operating system: usually 0 to indicate no errors,
752
+ and a small positive integer to indicate failure.
753
+ All open output channels are flushed with [flush_all].
754
+ An implicit [exit 0] is performed each time a program
755
+ terminates normally. An implicit [exit 2] is performed if the program
756
+ terminates early because of an uncaught exception. *)
757
+
758
+ val at_exit : (unit -> unit) -> unit
759
+ (** Register the given function to be called at program termination
760
+ time. The functions registered with [at_exit] will be called when
761
+ the program does any of the following:
762
+ - executes {!Pervasives.exit}
763
+ - terminates, either normally or because of an uncaught
764
+ exception
765
+ - executes the C function [caml_shutdown].
766
+ The functions are called in 'last in, first out' order: the
767
+ function most recently added with [at_exit] is called first. *)
768
+
769
+ (**/**)
770
+
771
+ val valid_float_lexem : string -> string