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

Spec Text Format For Quoted Modules And Binary #578

Closed
cretz opened this issue Oct 11, 2017 · 3 comments
Closed

Spec Text Format For Quoted Modules And Binary #578

cretz opened this issue Oct 11, 2017 · 3 comments

Comments

@cretz
Copy link

cretz commented Oct 11, 2017

I haven't revisited the spec in a few months and saw that #471 and #475 have landed. However, browsing the spec I see no mention of binary or quoted module definitions for the text format. I saw the comments like #471 (comment) saying move forward without the binary for now, but it is built in to the spec tests, so implementers must implement it or not pass. As for the quote part, I didn't see that anywhere.

@rossberg
Copy link
Member

The wast test format is a superset of the official text format. There is no expectation that other tool chains understand it, and the quote and binary syntax (as well as the other extensions) really only seem useful for testing consumers. But you should be able use the reference interpreter or wabt to convert it to bare wat.

@cretz
Copy link
Author

cretz commented Oct 11, 2017

Gotcha, I'll close this. Maybe this could be documented in https://github.com/WebAssembly/spec/blob/master/interpreter/README.md#s-expression-syntax somewhere? Using that doc for things like assert_malformed or the like really helped me write my original impl.

@cretz cretz closed this as completed Oct 11, 2017
@rossberg
Copy link
Member

Good point, README is updated!

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