Documentation
¶
Rendered for js/wasm
Overview ¶
mxwasm is the WebAssembly entry point for MX Script. It runs in the browser, exposes a single JS function `mxRun(source) -> result`, and wraps the same lex/parse/eval pipeline used by the native CLI.
Two interesting differences from native:
- SQL / Redis / Jobs / SMTP are stubbed (see interpreter/sql_wasm.go etc.) — the playground intentionally does not ship a database.
- stdout/stderr are captured into a string buffer and returned to JS instead of being written to a console — the page renders the result however it wants.
Click to show internal directories.
Click to hide internal directories.