Crate miden_assembly

source ·

Macros

Validates an op Token against a provided instruction string and/or an expected number of parameter inputs and returns an appropriate ParsingError if the operation Token is invalid.

Structs

Miden Assembler which can be used to convert Miden assembly source code into program MAST ( represented by the Program struct). The assembler can be instantiated in several ways using a “builder” patter. Specifically:
An abstract syntax tree (AST) of a Miden code module.
A reference to a module AST with its name under the provider context (i.e. stdlib).
An abstract syntax tree of a Miden procedure.
A procedure identifier computed as a digest truncated to [Self::LEN] bytes, product of the label of a procedure
An abstract syntax tree (AST) of a Miden program.

Enums

Traits

TODO: add docs
The module provider is now a simplified version of a module cache. It is expected to evolve to a general solution for the module lookup.

Functions

Parses the provided source into a module ST. A module consists of internal and exported procedures but does not contain a body.
Parses the provided source into a program AST. A program consist of a body and a set of internal (i.e., not exported) procedures.