WebAssembly / spec

WebAssembly specification, reference interpreter, and test suite.
https://webassembly.github.io/spec/
Other
3.13k stars 445 forks source link

Implement grammar definitions #1701

Closed rossberg closed 11 months ago

rossberg commented 11 months ago

This PR implements a grammar definition construct and specifies Wasm's binary grammars. See Language.md and spec for details. For now, grammars are simply erased when elaborating into the IL, I doubt we'll do something smart with them anytime soon.

However, this required another extension to the DSL:

Spec'ing the binary format also required tweaking and fixing some corners I had previously cut in the spec itself:

rossberg commented 11 months ago

Oops, wrong repo.