You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
interpreter: fails to parse a valid-looking wat #1566
but it fails to parse with the following error when fed to the reference interpreter
11.3-11.4: syntax error: unexpected token
If we parenthesize the last select, the parse succeeds. This appears to be the only such function in the spec-test suite where such an equivalent rewrite fails to parse in the test suite, as far as I can tell.
Darn, this is due to the hack necessary to parse the optional result signature. In fact, call_indirect has the same problem, none of the following work:
Activity
rossberg commentedon Dec 12, 2022
Darn, this is due to the hack necessary to parse the optional result signature. In fact, call_indirect has the same problem, none of the following work:
It works if you add another instruction at the end.
Unfortunately, the fix is rather non-obvious, it is easy to get shift/reduce conflicts here. Will have a look.
rossberg commentedon Dec 12, 2022
Please see #1567.