1WABT(1)                   BSD General Commands Manual                  WABT(1)
2

NAME

4     wat-desugar — parse .wat text form and print canonical flat format
5

SYNOPSIS

7     wat-desugar [options] file
8

DESCRIPTION

10     wat-desugar parses .wat text form as supported by the spec interpreter
11     (s-expressions, flat syntax, or mixed) and prints "canonical" flat for‐
12     mat.
13
14     The options are as follows:
15
16     --help  Print a help message
17
18     -o, --output=FILE
19             Output file for the formatted file
20
21     --debug-parser
22             Turn on debugging the parser of wat files
23
24     -f, --fold-exprs
25             Write folded expressions where possible
26
27     --enable-exceptions
28             Experimental exception handling
29
30     --disable-mutable-globals
31             Import/export mutable globals
32
33     --enable-saturating-float-to-int
34             Saturating float-to-int operators
35
36     --enable-sign-extension
37             Sign-extension operators
38
39     --enable-simd
40             SIMD support
41
42     --enable-threads
43             Threading support
44
45     --inline-exports
46             Write all exports inline
47
48     --inline-imports
49             Write all imports inline
50
51     --generate-names
52             Give auto-generated names to non-named functions, types, etc.
53

EXAMPLES

55     Write output to stdout
56
57           $ wat-desugar test.wat
58
59     Write output to test2.wat
60
61           $ wat-desugar test.wat -o test2.wat
62
63     Generate names for indexed variables
64
65           $ wat-desugar --generate-names test.wat
66

SEE ALSO

68     wasm-interp(1), wasm-objdump(1), wasm-opcodecnt(1), wasm-strip(1),
69     wasm-validate(1), wasm2c(1), wasm2wat(1), wast2json(1), wat2wasm(1,)
70     spectest-interp(1)
71

BUGS

73     If you find a bug, please report it at
74     .:
75           https://github.com/WebAssembly/wabt/issues
76
77BSD                              June 20, 2019                             BSD
Impressum