Files
marqdo/examples/browser-hello/README.md
T
cflmyandCursor a75b7a1c87 feat(wasm): C0/C1 browser Marqdo interpreter on wasm32
Feature-gate host/CLI deps for wasm-core, add run_source, and ship
crates/marqdo-wasm with a raw mq_run ABI plus examples/browser-hello.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 10:37:44 +08:00

17 lines
521 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# browser-hello(WASM C1)
在浏览器里跑 Marqdo `print`(路线 C)。
```bash
# 仓库根目录
cargo build -p marqdo-wasm --target wasm32-unknown-unknown --release
cp target/wasm32-unknown-unknown/release/marqdo_wasm.wasm examples/browser-hello/
cd examples/browser-hello
python3 -m http.server 8765
# 打开 http://127.0.0.1:8765/
```
- `loader.js` 仅为官方宿主桥(分配内存 / 调 `mq_run`),不是业务语言。
- 设计:[browser-marqdo-wasm.md](../../doc/design/browser-marqdo-wasm.md)