;;; EXE: %(wast2wasm)s ;;; FLAGS: --help (;; STDOUT ;;; usage: wast2wasm [options] filename read a file in the wasm s-expression format, check it for errors, and convert it to the wasm binary format. examples: # parse and typecheck test.wast $ wast2wasm test.wast # parse test.wast and write to binary file test.wasm $ wast2wasm test.wast -o test.wasm # parse spec-test.wast, and write verbose output to stdout (including # the meaning of every byte) $ wast2wasm spec-test.wast -v # parse spec-test.wast, and write files to spec-test.json. Modules are # written to spec-test.0.wasm, spec-test.1.wasm, etc. $ wast2wasm spec-test.wast --spec -o spec-test.json options: -v, --verbose use multiple times for more info -h, --help print this help message --debug-parser Turn on debugging the parser of wast files -d, --dump-module print a hexdump of the module to stdout --future-exceptions Test future extension for exception handling -o, --output=FILE output wasm binary file -r, create a relocatable wasm binary (suitable for linking with wasm-link) --spec parse a file with multiple modules and assertions, like the spec tests --no-canonicalize-leb128s Write all LEB128 sizes as 5-bytes instead of their minimal size --debug-names Write debug names to the generated binary file --no-check Don't check for invalid modules ;;; STDOUT ;;)