WABT(1)
πΈ WABT(1) β wat-desugar from the General Commands Manual πΈ
β¨ NAME β¨
wat-desugar β parse .wat text form and print canonical flat format. that's the whole assignment, bestie: it parses the .wat text form and prints the canonical flat format. π
π¦ SYNOPSIS π¦
wat-desugar [options] filename
π DESCRIPTION π
wat-desugar reads a file in the wasm s-expression format and formats it. no cap, that's the main character move. π¦
the options are literally as follows, and yes, we're going through every single one:
π OPTIONS π
--helpβ prints this help message π--versionβ prints version information β¨-o,--output=FILEβ output file for the formatted file π-f,--fold-exprsβ writes folded expressions where possible π¦--inline-exportsβ writes all exports inline π--inline-importsβ writes all imports inline π--disable-exceptionsβ turns off experimental exception handling π--disable-mutable-globalsβ turns off import/export mutable globals π--disable-saturating-float-to-intβ turns off saturating float-to-int operators π₯--disable-sign-extensionβ turns off sign-extension operators π₯--disable-simdβ turns off SIMD support π--enable-threadsβ turns on threading support π§--enable-function-referencesβ turns on typed function references π§--disable-multi-valueβ turns off multi-value π--disable-tail-callβ turns off tail-call support π--disable-bulk-memoryβ turns off bulk-memory operations π--disable-reference-typesβ turns off reference types (externref) π--disable-annotationsβ turns off custom annotation syntax π--enable-code-metadataβ turns on code metadata β¨--enable-gcβ turns on garbage collection π§--disable-memory64β turns off 64-bit memory π--disable-multi-memoryβ turns off multi-memory π--disable-extended-constβ turns off extended constant expressions π--disable-relaxed-simdβ turns off relaxed SIMD π₯--enable-custom-page-sizesβ turns on custom page sizes π--enable-compact-importsβ turns on compact import section π¦--enable-wide-arithmeticβ turns on wide arithmetic β--enable-allβ turns on all features ππ₯
π EXAMPLES π
write output to stdout β say less, bestie:
$ wat-desugar test.wat
write output to test2.wat, iconic:
$ wat-desugar test.wat -o test2.wat
generate names for indexed variables, literally:
$ wat-desugar --generate-names test.wat
π SEE ALSO π
go give these iconique manual pages a read: wasm-interp(1), wasm-objdump(1), wasm-stats(1), wasm-strip(1), wasm-validate(1), wasm2c(1), wasm2wat(1), wast2json(1), wat2wasm(1), spectest-interp(1). π«Ά
π BUGS π
found a bug? π no cap, report it at https://github.com/WebAssembly/wabt/issues.
source/version vibes: Debian Β· date: $Mdocdate$ Β· manual: WABT(1) β bye bestie, go format something cute π«Άπ
π¦ where this page comes from
- arch rolling: wabt 1.0.42-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms