-
Notifications
You must be signed in to change notification settings - Fork 745
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
Can't have drop's and unreachable's? #6133
Comments
See the comment about the text format here:
So it can parse Work on a new parser is underway, but for now you can use |
@kripken - I want to use WasmGC features and to my understanding, wasm-as is, at the moment the only wat-to-wasm parser that has implemented WasmGC? |
Oh, yeah, if you need WasmGC atm then options are limited. In that case it might be simplest to use s-expressions, which are supported in Binaryen's text format. The add and the load etc. in your example code are all properly nested, so maybe you are close to that already? (Btw, it might help to see the code samples in the test suite for what Binaryen supports. For example you can find examples of |
@trolund |
This is a pretty old issue, but these days you can also use Closing this issue because the question is answered. |
Hey, I am trying to use Wasm-as to parse some .wat files to .wasm. Multiple of them include drop's, and wasm-as toss an error on the line of the drop every time. Is there any way around this issue?
An example:
The error:
It is the same problem with unreachable.
The text was updated successfully, but these errors were encountered: