https://github.com/tanishiking/waml-docker
Dockerfile for build and running WAML
https://github.com/tanishiking/waml-docker
docker wasm
Last synced: 4 months ago
JSON representation
Dockerfile for build and running WAML
- Host: GitHub
- URL: https://github.com/tanishiking/waml-docker
- Owner: tanishiking
- Created: 2023-12-04T11:56:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-08T06:47:43.000Z (over 1 year ago)
- Last Synced: 2025-03-18T05:50:07.712Z (4 months ago)
- Topics: docker, wasm
- Language: Dockerfile
- Homepage: https://github.com/WebAssembly/gc/tree/waml/proposals/gc/waml
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## usage
See: https://github.com/WebAssembly/gc/tree/waml/proposals/gc/waml#usage
```sh
$ docker build . -t waml
$ docker run -it waml waml -x -c
waml 0.2 interpreter
> val f x = x + 7; f 5;
...# compile waml to wasm
$ docker run -i -v "$PWD":/data waml waml -c /data/test.waml# compile waml to wat
$ docker run -i -v "$PWD":/data waml waml -c -x /data/test.waml# convert wat to wasm
$ docker run -i -v "$PWD":/data waml wasm -d /data/test.wat -o /data/test.wasm# interpret wasm
$ docker run -i -v "$PWD":/data waml wasm /data/test.wasm
```