Conversation
|
What do you think about this for block signatures? |
|
@AndrewScheidecker, that's actually the syntax I started out with, but I backed out for 2 reasons:
I think we can always allow the more general syntax later, and keep the simple one as a short hand. |
|
I agree with @AndrewScheidecker on the syntax for the block signatures, and would just make the first immediate argument of the |
Use the block signature syntax implemented here: WebAssembly/spec#336
|
The test changes lgtm. The proposed syntax seems acceptable to me. I've updated the candidate 0xc wast file to use the syntax proposed here: https://github.com/WebAssembly/webassembly.github.io/pull/14 (though it's not hard to change if a different syntax is ultimately chosen). |
|
@JSStats, |
|
@rossberg-chromium Generic s-exp parsers have no constrain on 'headless' lists, it is very simple to parse the |
* Specify text format for SIMD * Reword description of SIMD memory instructions Co-authored-by: Ben Smith <binjimin@gmail.com>
Implements WebAssembly/design#765; specifically:
(block i32 ...)etc)ifsyntax: the label is onifnow instead of the children, in order to be consistent with the signature