@grain/binaryen.ml 0.11.1 → 0.13.0

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 (67) hide show
  1. binaryen-archive/CHANGELOG.md +53 -0
  2. binaryen-archive/README.md +25 -1
  3. binaryen-archive/binaryen.opam +5 -5
  4. binaryen-archive/esy.lock/index.json +325 -310
  5. binaryen-archive/esy.lock/opam/base-bytes.base/opam +9 -0
  6. binaryen-archive/esy.lock/opam/{base.v0.14.2 → base.v0.14.3}/opam +2 -2
  7. binaryen-archive/esy.lock/opam/{dune-build-info.2.9.1 → dune-build-info.2.9.3}/opam +5 -4
  8. binaryen-archive/esy.lock/opam/{dune-configurator.2.9.1 → dune-configurator.2.9.3}/opam +5 -4
  9. binaryen-archive/esy.lock/opam/{dune.2.9.1 → dune.2.9.3}/opam +5 -4
  10. binaryen-archive/esy.lock/opam/either.1.0.0/opam +40 -0
  11. binaryen-archive/esy.lock/opam/{fix.20211231 → fix.20220121}/opam +3 -3
  12. binaryen-archive/esy.lock/opam/menhir.20211128/opam +1 -1
  13. binaryen-archive/esy.lock/opam/{ocaml-lsp-server.1.9.0 → ocaml-lsp-server.1.9.1}/opam +5 -5
  14. binaryen-archive/esy.lock/opam/{ocamlfind.1.9.1 → ocamlfind.1.9.3}/opam +3 -3
  15. binaryen-archive/esy.lock/opam/{ocamlformat.0.18.0 → ocamlformat.0.20.1}/opam +14 -15
  16. binaryen-archive/esy.lock/opam/ocp-indent.1.7.0/opam +57 -0
  17. binaryen-archive/esy.lock/opam/odoc-parser.1.0.0/opam +46 -0
  18. binaryen-archive/esy.lock/opam/{ppxlib.0.22.2 → ppxlib.0.24.0}/opam +9 -6
  19. binaryen-archive/esy.lock/opam/{topkg.1.0.4 → topkg.1.0.5}/opam +3 -3
  20. binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.9.1_opam_override/files/findlib-1.9.1.patch → opam__s__ocamlfind_opam__c__1.9.3_opam_override/files/findlib.patch} +0 -0
  21. binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.9.1_opam_override → opam__s__ocamlfind_opam__c__1.9.3_opam_override}/package.json +1 -1
  22. binaryen-archive/js/binaryen.es5.js +363 -5
  23. binaryen-archive/js/dune +1 -1
  24. binaryen-archive/js/export.ml +1 -4
  25. binaryen-archive/js/expression.ml +161 -0
  26. binaryen-archive/js/literal.ml +0 -1
  27. binaryen-archive/js/module.ml +9 -9
  28. binaryen-archive/js/op.ml +0 -223
  29. binaryen-archive/js/prelude.js +2 -0
  30. binaryen-archive/js/table.ml +2 -2
  31. binaryen-archive/js/type.ml +0 -9
  32. binaryen-archive/package.json +11 -8
  33. binaryen-archive/src/binaryen_stubs_exports.c +2 -2
  34. binaryen-archive/src/binaryen_stubs_expressions.c +250 -0
  35. binaryen-archive/src/binaryen_stubs_features.c +24 -0
  36. binaryen-archive/src/binaryen_stubs_modules.c +7 -0
  37. binaryen-archive/src/binaryen_stubs_tables.c +4 -3
  38. binaryen-archive/src/dune +1 -2
  39. binaryen-archive/src/element_segment.ml +0 -1
  40. binaryen-archive/src/export.ml +2 -4
  41. binaryen-archive/src/expression.ml +94 -63
  42. binaryen-archive/src/function.ml +0 -6
  43. binaryen-archive/src/global.ml +0 -2
  44. binaryen-archive/src/literal.ml +0 -3
  45. binaryen-archive/src/module.ml +19 -9
  46. binaryen-archive/src/settings.ml +0 -6
  47. binaryen-archive/src/table.ml +2 -2
  48. binaryen-archive/src/type.ml +0 -1
  49. binaryen-archive/test/config/ocamlopt_flags.ml +8 -1
  50. binaryen-archive/test/test.expected +13 -5
  51. binaryen-archive/test/test.ml +47 -22
  52. binaryen-archive/virtual/element_segment.mli +0 -4
  53. binaryen-archive/virtual/export.mli +1 -16
  54. binaryen-archive/virtual/expression.mli +93 -115
  55. binaryen-archive/virtual/function.mli +0 -12
  56. binaryen-archive/virtual/global.mli +0 -8
  57. binaryen-archive/virtual/import.mli +0 -4
  58. binaryen-archive/virtual/literal.mli +0 -5
  59. binaryen-archive/virtual/module.mli +5 -28
  60. binaryen-archive/virtual/op.mli +0 -315
  61. binaryen-archive/virtual/settings.mli +0 -17
  62. binaryen-archive/virtual/table.mli +1 -4
  63. binaryen-archive/virtual/type.mli +0 -11
  64. binaryen-archive/esy.lock/opam/ocaml-migrate-parsetree.2.3.0/opam +0 -39
  65. binaryen-archive/esy.lock/opam/odoc.1.5.3/opam +0 -53
  66. binaryen-archive/esy.lock/opam/tyxml.4.5.0/opam +0 -42
  67. binaryen-archive/js/postlude.js +0 -2
@@ -1,6 +1,6 @@
1
1
  type t
2
2
 
3
- val add_table : Module.t -> string -> int -> int -> t
3
+ val add_table : Module.t -> string -> int -> int -> Type.t -> t
4
4
 
5
5
  val add_active_element_segment :
6
6
  Module.t ->
@@ -11,9 +11,6 @@ val add_active_element_segment :
11
11
  Element_segment.t
12
12
 
13
13
  val remove_element_segment : Module.t -> string -> unit
14
-
15
14
  val get_num_element_segments : Module.t -> int
16
-
17
15
  val get_element_segment : Module.t -> string -> Element_segment.t
18
-
19
16
  val get_element_segment_by_index : Module.t -> int -> Element_segment.t
@@ -1,25 +1,14 @@
1
1
  type t
2
2
 
3
3
  val none : t
4
-
5
4
  val int32 : t
6
-
7
5
  val int64 : t
8
-
9
6
  val float32 : t
10
-
11
7
  val float64 : t
12
-
13
8
  val vec128 : t
14
-
15
9
  val funcref : t
16
-
17
10
  val externref : t
18
-
19
11
  val unreachable : t
20
-
21
12
  val auto : t
22
-
23
13
  val create : t array -> t
24
-
25
14
  val expand : t -> t array
@@ -1,39 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "frederic.bour@lakaban.net"
3
- authors: [
4
- "Frédéric Bour <frederic.bour@lakaban.net>"
5
- "Jérémie Dimino <jeremie@dimino.org>"
6
- ]
7
- license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
8
- homepage: "https://github.com/ocaml-ppx/ocaml-migrate-parsetree"
9
- bug-reports: "https://github.com/ocaml-ppx/ocaml-migrate-parsetree/issues"
10
- dev-repo: "git+https://github.com/ocaml-ppx/ocaml-migrate-parsetree.git"
11
- doc: "https://ocaml-ppx.github.io/ocaml-migrate-parsetree/"
12
- tags: [ "syntax" "org:ocamllabs" ]
13
- build: ["dune" "build" "-p" name "-j" jobs]
14
- run-test: ["dune" "runtest" "-p" name "-j" jobs]
15
- depends: [
16
- "dune" {>= "2.3"}
17
- "ocaml" {>= "4.02.3" & < "4.15"}
18
- "cinaps" {with-test & >= "v0.13.0"}
19
- ]
20
- conflicts: [
21
- "base-effects"
22
- ]
23
- synopsis: "Convert OCaml parsetrees between different versions"
24
- description: """
25
- Convert OCaml parsetrees between different versions
26
-
27
- This library converts parsetrees, outcometree and ast mappers between
28
- different OCaml versions. High-level functions help making PPX
29
- rewriters independent of a compiler version.
30
- """
31
- url {
32
- src:
33
- "https://github.com/ocaml-ppx/ocaml-migrate-parsetree/releases/download/v2.3.0/ocaml-migrate-parsetree-2.3.0.tbz"
34
- checksum: [
35
- "sha256=108126b247f190e04c8afd3d72ced0b63ffdf73c3f801f09be5db0cd7280bf0a"
36
- "sha512=cccd766d33e2c70015735e050c2b7cdacf9f046e2874b563ef64b77706f56d004aa9b9df7d5cc201e5f3ba6e3267f95f654e1e3de58891b91f9c28a61988a9ee"
37
- ]
38
- }
39
- x-commit-hash: "7ef6ff49bfd7d6d816be61d3acea460af25d7d99"
@@ -1,53 +0,0 @@
1
- opam-version: "2.0"
2
-
3
- homepage: "http://github.com/ocaml/odoc"
4
- doc: "https://ocaml.github.io/odoc/"
5
- bug-reports: "https://github.com/ocaml/odoc/issues"
6
- license: "ISC"
7
-
8
- authors: [
9
- "Thomas Refis <trefis@janestreet.com>"
10
- "David Sheets <sheets@alum.mit.edu>"
11
- "Leo White <leo@lpw25.net>"
12
- "Anton Bachin <antonbachin@yahoo.com>"
13
- "Jon Ludlam <jon@recoil.org>"
14
- ]
15
- maintainer: "Jon Ludlam <jon@recoil.org>"
16
- dev-repo: "git+https://github.com/ocaml/odoc.git"
17
-
18
- synopsis: "OCaml documentation generator"
19
- description: """
20
- Odoc is a documentation generator for OCaml. It reads doc comments,
21
- delimited with `(** ... *)`, and outputs HTML.
22
- """
23
-
24
- depends: [
25
- "astring"
26
- "cmdliner" {>= "1.0.0"}
27
- "cppo" {build & >= "1.1.0"}
28
- "dune"
29
- "fpath"
30
- "ocaml" {>= "4.02.0" & < "4.14"}
31
- "result"
32
- "tyxml" {>= "4.3.0"}
33
-
34
- "alcotest" {dev & >= "0.8.3" & with-test}
35
- "markup" {dev & >= "1.0.0" & with-test}
36
- "ocamlfind" {dev}
37
- "sexplib" {dev & >= "113.33.00" & with-test}
38
-
39
- "bisect_ppx" {dev & >= "1.3.0"}
40
- ]
41
-
42
- build: [
43
- ["dune" "subst"] {dev}
44
- ["dune" "build" "-p" name "-j" jobs]
45
- ]
46
- url {
47
- src: "https://github.com/ocaml/odoc/releases/download/1.5.3/odoc-1.5.3.tbz"
48
- checksum: [
49
- "sha256=f2b76f811658c4b52cb48ac4ffc2ec37cedd2a805111c7f8ec20f8f36b8bbf45"
50
- "sha512=9e069590e0737c94813d25235b5cfe27feb5a0298a17ff9b9ee446c69827c3a0ea3b7da5d05b278639cd1f0202e0d83356707979edfaa2af73876fc000c23c4d"
51
- ]
52
- }
53
- x-commit-hash: "8de4a36814533b25b461373fe5c0f54db55e5e7c"
@@ -1,42 +0,0 @@
1
- opam-version: "2.0"
2
- synopsis: "A library for building correct HTML and SVG documents"
3
- description:
4
- "TyXML provides a set of convenient combinators that uses the OCaml type system to ensure the validity of the generated documents. TyXML can be used with any representation of HTML and SVG: the textual one, provided directly by this package, or DOM trees (`js_of_ocaml-tyxml`) virtual DOM (`virtual-dom`) and reactive or replicated trees (`eliom`). You can also create your own representation and use it to instantiate a new set of combinators."
5
- maintainer: ["dev@ocsigen.org"]
6
- authors: ["The ocsigen team"]
7
- license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
8
- homepage: "https://github.com/ocsigen/tyxml"
9
- doc: "https://ocsigen.org/tyxml/latest/manual/intro"
10
- bug-reports: "https://github.com/ocsigen/tyxml/issues"
11
- depends: [
12
- "dune" {>= "2.0"}
13
- "ocaml" {>= "4.02"}
14
- "alcotest" {with-test}
15
- "re" {>= "1.5.0"}
16
- "seq"
17
- "uutf" {>= "1.0.0"}
18
- ]
19
- build: [
20
- ["dune" "subst"] {dev}
21
- [
22
- "dune"
23
- "build"
24
- "-p"
25
- name
26
- "-j"
27
- jobs
28
- "@install"
29
- "@runtest" {with-test}
30
- "@doc" {with-doc}
31
- ]
32
- ]
33
- dev-repo: "git+https://github.com/ocsigen/tyxml.git"
34
- x-commit-hash: "ef431a4bceaefb2d9248e79092e6c1a1a9420095"
35
- url {
36
- src:
37
- "https://github.com/ocsigen/tyxml/releases/download/4.5.0/tyxml-4.5.0.tbz"
38
- checksum: [
39
- "sha256=c69accef5df4dd89d38f6aa0baad01e8fda4e9e98bb7dad61bec1452c5716068"
40
- "sha512=772535441b09c393d53c27152e65f404a0a541aa0cea1bda899a8d751ab64d1729237e583618c3ff33d75e3865d53503d1ea413c6bbc8c68c413347efd1709b3"
41
- ]
42
- }
@@ -1,2 +0,0 @@
1
- // Attach binaryen to our global
2
- global.binaryen = module.exports;