WAT
Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.
WebAssembly Text Preview.
At a glance
| Purpose | A WebAssembly text file (.wat or .wast): a module written as S-expressions. |
| Extensions | .wat |
| Poka parser | poka-wat |
| Viewer | poka-metadata-card-viewer |
| Depth tier | Metadata card (see Depth tiers) |
| Breadth tier | B4 Summary (see Breadth tiers) |
How much Poka reads
B4 Summary. The container and metadata are read and summarised (counts, properties, structure), but the main content is not rendered.
Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-wat/src/main.rs (225 lines) and plugin.json. No unit tests or tests/samples.rs; the corpus has no .wat and .wast sample. Covers .wat and .wast. The card counts modules and components, types, functions, tables, memories, globals, exports, imports, element and data segments, start declarations, params, results and locals, control structures, calls, memory operations, constants and value types, with sample exports and imports, by matching text. Judgement: B4: the content is summarised by counts, but the entries themselves are not shown.
What Poka does not read
- The text is not shown
- Forms are counted by text matching, not parsed, so nested or commented forms can be miscounted
- Function signatures and bodies are not listed
- .wast test assertions are not counted separately
Libraries
Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.
- wat (candidate; Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT; Rust; https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wat) — official text decoder
Sources
- parsers/poka-wat/src/main.rs
- parsers/poka-wat/plugin.json