Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference between Wast and Wat #1

Open
xtuc opened this issue Nov 30, 2018 · 1 comment
Open

Difference between Wast and Wat #1

xtuc opened this issue Nov 30, 2018 · 1 comment

Comments

@xtuc
Copy link

xtuc commented Nov 30, 2018

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).

@takenobu-hs
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants