Expand description
A library for encoding and decoding WebAssembly compositions.
Modules§
- lexer
- Module for the lexer implementation.
- resolution
- Module for resolving WAC ASTs.
Structs§
- Access
Expr - Represents an access expression in the AST.
- Constructor
- Represents a resource constructor in the AST.
- DocComment
- Represents a documentation comment in the AST.
- Document
- Represents a top-level WAC document.
- Document
Printer - A printer for WAC documents.
- Enum
Case - Represents an enum case in the AST.
- Enum
Decl - Represents an enum declaration in the AST.
- Export
Statement - Represents an export statement in the AST.
- Expr
- Represents an expression in the AST.
- Field
- Represents a record field in the AST.
- Flag
- Represents a flag in the AST.
- Flags
Decl - Represents a flags declaration in the AST.
- Func
Type - Represents a function type in the AST.
- Ident
- Represents an identifier in the AST.
- Import
Statement - Represents an import statement in the AST.
- Inline
Interface - Represents an inline interface in the AST.
- Interface
Decl - Represents an interface declaration in the AST.
- Interface
Export - Represents an interface export in the AST.
- LetStatement
- Represents a let statement in the AST.
- Lookahead
- Used to look ahead one token in the lexer.
- Method
- Represents a resource method in the AST.
- Named
Access Expr - Represents a named access expression in the AST.
- Named
Instantiation Argument - Represents a named instantiation argument in the AST.
- Named
Type - Represents a name and an associated type in the AST.
- Named
World Item - Represents a named world item in the AST.
- Nested
Expr - Represents a nested expression in the AST.
- NewExpr
- Represents a new expression in the AST.
- Package
Directive - Represents a package directive in the AST.
- Package
Name - Represents a package name in the AST.
- Package
Path - AST representation of a path to an item such as a world in a package (e.g.
foo:bar/qux
). - Record
Decl - Represents a record declaration in the AST.
- Resource
Decl - Represents a resource declaration in the AST.
- String
- Represents a string in the AST.
- Type
Alias - Represents a type alias in the AST.
- Use
- Represents a “use” in the AST.
- UseItem
- Represents a use item in the AST.
- Variant
Case - Represents a variant case in the AST.
- Variant
Decl - Represents a variant declaration in the AST.
- World
Decl - Represents a world declaration in the AST.
- World
Export - Represents a world export in the AST.
- World
Import - Represents a world import in the AST.
- World
Include - Represents a world include in the AST.
- World
Include Item - Represents a renaming of an included name.
Enums§
- Error
- Represents a parse error.
- Export
Options - Represents an item being exported in the AST.
- Extern
Name - Represents an extern name following an
as
clause in the AST. - Extern
Type - Represents the external type of a world item in the AST.
- Func
Type Ref - Represents a function type reference in the AST.
- Import
Type - Represents an import type in the AST.
- Instantiation
Argument - Represents an instantiation argument in the AST.
- Instantiation
Argument Name - Represents the argument name in an instantiation argument in the AST.
- Interface
Item - Represents an interface item in the AST.
- Item
Type Decl - Represents an interface or world type declaration in the AST.
- Postfix
Expr - Represents a postfix expression in the AST.
- Primary
Expr - Represents a primary expression in the AST.
- Resource
Method - Represents a resource method in the AST.
- Result
List - Represents a result list in the AST.
- Statement
- Represents a statement in the AST.
- Type
- Represents a type in the AST.
- Type
Alias Kind - Represents a type alias kind in the AST.
- Type
Decl - Represents a top-level type declaration in the AST.
- Type
Statement - Represents a type statement in the AST.
- UsePath
- Represents a use path in the AST.
- World
Item - Represents a world item in the AST.
- World
Item Path - Represents a world item path in the AST.
- World
Ref - Represents a reference to a world in the AST (local or foreign).
Functions§
- parse_
optional - Parses an optional tokens from a lexer.
- parse_
token - Expects a given token from the lexer.
Type Aliases§
- Parse
Result - Represents a parse result.