package wax-lib

  1. Overview
  2. Docs
Libraries for Wax, a Rust-like syntax for WebAssembly

Install

dune-project
 Dependency

Authors

Maintainers

Sources

wax-v0.2.0.tbz
sha256=4361e1324b7754a4c08ab5b505df32061f3ce0cea60443fd0d3699e0fa796b32
sha512=fcc756d2f160ba90a9aa1131f2ab22ed7f45466ccd658c21cf9df6868a6aab0cee7f404719d698a379958802f9820398f2fe0685ecc4dda018ca4f653294e39b

doc/wax-lib.wasm/Wax_wasm/Desugar/index.html

Module Wax_wasm.DesugarSource

Sourceexception Conditional_remains of Ast.location

Raised by module_ when an (@if ...) conditional-compilation annotation is still present. Such annotations have no core-wasm form; they must have been resolved beforehand (e.g. with -D/--define). Carries the annotation's source location so the caller can report a located diagnostic.

Expand the Wax-specific @string and @char annotations of a WAT module into core WebAssembly (array.new_fixed / i32.const) — including module-level (@string ...) globals — so the result is plain WebAssembly text. A synthesised i8 array type is appended when an untyped string needs one. Also synthesises the declarative element segment for any ref.func that Wax's lenient reader let the module omit (via Declare_refs), so the output passes strict/spec reference validation. Raises Conditional_remains on any remaining (@if ...).