diff --git a/.gitignore b/.gitignore index 394a03a..529a75c 100644 --- a/.gitignore +++ b/.gitignore @@ -32,4 +32,5 @@ actual_output/ *.exe *.dll -**/testdata/fuzz/ \ No newline at end of file +**/testdata/fuzz/ +.DS_Store \ No newline at end of file diff --git a/examples/code/wasm/README.md b/examples/code/wasm/README.md new file mode 100644 index 0000000..a2c4aea --- /dev/null +++ b/examples/code/wasm/README.md @@ -0,0 +1,14 @@ +Requirements: sointu binaries, `wabt` + +To generate the .wasm file: + +``` +sointu-compile -o . -arch=wasm tests/test_chords.yml +wat2wasm --enable-bulk-memory test_chords.wat +``` + +To run the example: + +``` +npx serve examples/code/wasm +``` diff --git a/examples/code/wasm/index.html b/examples/code/wasm/index.html new file mode 100644 index 0000000..9429b3e --- /dev/null +++ b/examples/code/wasm/index.html @@ -0,0 +1,51 @@ + + +
+