Next: , Previous: , Up: Toolchain reference   [Contents][Index]


7.7 Binary Parser

The (wasm parse) module parses the Wasm binary format.

Procedure: parse-wasm port

Parse the Wasm binary data from port and return a Wasm module.

Procedure: has-wasm-header? port

Return #t if the next 8 bytes read from port are the magic bytes for a WebAssembly file.