WABT(1) | General Commands Manual | WABT(1) |
wat-desugar
—
wat-desugar |
[options] file |
wat-desugar
parses .wat text form as supported by the
spec interpreter (s-expressions, flat syntax, or mixed) and prints
"canonical" flat format.
The options are as follows:
-
-help
-o
,
-
-output=FILE
-
-debug-parser
-f
,
-
-fold-exprs
-
-enable-exceptions
-
-disable-mutable-globals
-
-enable-saturating-float-to-int
-
-enable-sign-extension
-
-disable-simd
-
-enable-threads
-
-inline-exports
-
-inline-imports
-
-generate-names
$ wat-desugar test.wat
Write output to test2.wat
$ wat-desugar test.wat -o
test2.wat
Generate names for indexed variables
$ wat-desugar --generate-names
test.wat
October 7, 2021 | Debian |