Difference between Wast and Wat
xtuc opened this issue · 1 comments
You mentioned the suggar of the WebAssembly text format, but it's missing a bit of formal definition.
WebAssembly specifies a textual representation called wat
(WebAssembly Text Format): https://webassembly.github.io/spec/core/text/index.html, which is a direct mapping from the binary version. It has no nesting nor identifiers (everything is index based).
The suggared version is called wast
(WebAssembly "Script Text Format): https://github.com/WebAssembly/spec/tree/master/interpreter#s-expression-syntax, it's not part of the official specification and is made for convenience (used in the spec tests).
@xtuc, thanks for your comment.
I intended "folded instructions" as the sugared version.
https://webassembly.github.io/spec/core/text/instructions.html#folded-instructions
I will understand the difference between the two from now.
Thank you for teaching me.