Module token

Source
Expand description

Common tokens that implement the Parse trait which are otherwise not associated specifically with the wasm text format per se (useful in other contexts too perhaps).

Structs§

F32
A parsed floating-point type
F64
A parsed floating-point type
Id
An identifier in a WebAssembly module, prefixed by $ in the textual format.
ItemRef
Parses (func $foo)
LParen
A convenience type to use with Parser::peek to see if the next token is an s-expression.
NameAnnotation
An @name annotation in source, currently of the form @name "foo"
RParen
A convenience type to use with Parser::peek to see if the next token is the end of an s-expression.
Span
A position in the original source stream, used to render errors.

Enums§

Index
A reference to another item in a wasm module.