Crate wac_parser
source ·Expand description
A library for encoding and decoding WebAssembly compositions.
Modules§
- Module for the lexer implementation.
- Module for resolving WAC ASTs.
Structs§
- Represents an access expression in the AST.
- Represents a resource constructor in the AST.
- Represents a documentation comment in the AST.
- Represents a top-level WAC document.
- A printer for WAC documents.
- Represents an enum case in the AST.
- Represents an enum declaration in the AST.
- Represents an export statement in the AST.
- Represents an expression in the AST.
- Represents a record field in the AST.
- Represents a flag in the AST.
- Represents a flags declaration in the AST.
- Represents a function type in the AST.
- Represents an identifier in the AST.
- Represents an import statement in the AST.
- Represents an inline interface in the AST.
- Represents an interface declaration in the AST.
- Represents an interface export in the AST.
- Represents a let statement in the AST.
- Used to look ahead one token in the lexer.
- Represents a resource method in the AST.
- Represents a named access expression in the AST.
- Represents a named instantiation argument in the AST.
- Represents a name and an associated type in the AST.
- Represents a named world item in the AST.
- Represents a nested expression in the AST.
- Represents a new expression in the AST.
- Represents a package directive in the AST.
- Represents a package name in the AST.
- AST representation of a path to an item such as a world in a package (e.g.
foo:bar/qux
). - Represents a record declaration in the AST.
- Represents a resource declaration in the AST.
- Represents a string in the AST.
- Represents a type alias in the AST.
- Represents a “use” in the AST.
- Represents a use item in the AST.
- Represents a variant case in the AST.
- Represents a variant declaration in the AST.
- Represents a world declaration in the AST.
- Represents a world export in the AST.
- Represents a world import in the AST.
- Represents a world include in the AST.
- Represents a renaming of an included name.
Enums§
- Represents a parse error.
- Represents an item being exported in the AST.
- Represents an extern name following an
as
clause in the AST. - Represents the external type of a world item in the AST.
- Represents a function type reference in the AST.
- Represents an import type in the AST.
- Represents an instantiation argument in the AST.
- Represents the argument name in an instantiation argument in the AST.
- Represents an interface item in the AST.
- Represents an interface or world type declaration in the AST.
- Represents a postfix expression in the AST.
- Represents a primary expression in the AST.
- Represents a resource method in the AST.
- Represents a result list in the AST.
- Represents a statement in the AST.
- Represents a type in the AST.
- Represents a type alias kind in the AST.
- Represents a top-level type declaration in the AST.
- Represents a type statement in the AST.
- Represents a use path in the AST.
- Represents a world item in the AST.
- Represents a world item path in the AST.
- Represents a reference to a world in the AST (local or foreign).
Functions§
- Parses an optional tokens from a lexer.
- Expects a given token from the lexer.
Type Aliases§
- Represents a parse result.