Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epatrizio/miniml2wasm
MiniML to WebAssembly compiler
https://github.com/epatrizio/miniml2wasm
compiler ocaml-library wasm webassembly
Last synced: 9 days ago
JSON representation
MiniML to WebAssembly compiler
- Host: GitHub
- URL: https://github.com/epatrizio/miniml2wasm
- Owner: epatrizio
- License: unlicense
- Created: 2024-08-30T13:08:18.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-25T17:41:50.000Z (13 days ago)
- Last Synced: 2024-10-25T18:17:22.065Z (13 days ago)
- Topics: compiler, ocaml-library, wasm, webassembly
- Language: OCaml
- Homepage:
- Size: 116 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# miniml2wasm - MiniML to WebAssembly compiler written in OCaml
```ml
(* type is optional, it can be inferred *)
let x = 40; (* global scope *)
let y : i32 = 2 in (* local scope *)
(x + y)
``````sh
$ dune exec -- miniml2wasm --help
usage: dune exec miniml2wasm -- file_name.ml [options]
--debug Debug mode
-help Display this list of options
--help Display this list of options
``````shell-session
$ dune exec miniml2wasm -- test/42.mml
$ wasm -d _wasm/42.wasm -o _wasm/42.wat
$ owi _wasm/42.wat --debug
```