package js_of_ocaml-compiler
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Compiler from OCaml bytecode to JavaScript
Install
dune-project
Dependency
Authors
Maintainers
Sources
js_of_ocaml-6.3.2.tbz
sha256=a93afc9654ec3464701fbce0dccf3a8beb9508acb12c6045776bf2cf106cabc0
sha512=3cd59bd4395a3ac83f546ae20259b026b61cea33e3ef35ab0560ce0baadaf50ebefb704dba28246a3c8b1ce3ff6d8efdc3e514dcbd728af0afb2e2a2c2032620
doc/src/js_of_ocaml-compiler/reserved.ml.html
Source file reserved.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159(* Js_of_ocaml compiler * http://www.ocsigen.org/js_of_ocaml/ * Copyright (C) 2013 Hugo Heuzard * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, with linking exception; * either version 2.1 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) open! Stdlib let keyword = List.fold_left ~f:(fun acc x -> StringSet.add x acc) ~init:StringSet.empty [ (* keyword *) "break" ; "case" ; "catch" ; "continue" ; "debugger" ; "default" ; "delete" ; "do" ; "else" ; "finally" ; "for" ; "function" ; "if" ; "in" ; "instanceof" ; "new" ; "return" ; "switch" ; "this" ; "throw" ; "try" ; "typeof" ; "var" ; "void" ; "while" ; "with" ; (* reserved in ECMAScript 5 *) "class" ; "const" ; "enum" ; "export" ; "extends" ; "import" ; "super" ; "implements" ; "interface" ; "let" ; "package" ; "private" ; "protected" ; "public" ; "static" ; "yield" ; (* other *) "null" ; "true" ; "false" ; "NaN" ; "undefined" ; (* Unexpected eval or arguments in strict mode *) "eval" ; "arguments" ; (* also reserved in ECMAScript 6 *) "await" ] let provided = List.fold_left ~f:(fun acc x -> StringSet.add x acc) ~init:StringSet.empty [ "event" ; "location" ; "window" ; "document" ; "eval" ; "navigator" ; "self" ; "Array" ; "Function" ; "Date" ; "Math" ; "JSON" ; "Object" ; "globalThis" ; "RegExp" ; "String" ; "Boolean" ; "Number" ; "BigInt" ; "Infinity" ; "isFinite" ; "ActiveXObject" ; "XMLHttpRequest" ; "XDomainRequest" ; "DOMException" ; "Error" ; "SyntaxError" ; "TypeError" ; "arguments" ; "decodeURI" ; "decodeURIComponent" ; "encodeURI" ; "encodeURIComponent" ; "escape" ; "unescape" ; "isNaN" ; "parseFloat" ; "parseInt" ; "module" (* only available in node *) ; "require" (* only available in node *) ; "Symbol" ; "ArrayBuffer" ; "DataView" ; "Float32Array" ; "Float64Array" ; "Int16Array" ; "Int32Array" ; "Int8Array" ; "TextDecoder" ; "TextEncoder" ; "Uint16Array" ; "Uint32Array" ; "Uint8Array" ; "Uint8ClampedArray" ; "URL" ; "atob" ; "btoa" ; "clearInterval" ; "console" ; "global" (* only available in node *) ; "importScripts" (* only available in WebWorker *) ; "performance" (* Not available in node until v16+ *) ; "setTimeout" ; "Map" ; "Set" ; "WeakRef" ; "WeakMap" ; "FinalizationRegistry" ; "WebAssembly" ; "Promise" ; "fetch" ; "crypto" ]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>