Expand description

This crate contains the fundamental utilities used to by the rest of the moore compiler.

Re-exports

pub use self::id::NodeId;

Modules

Multi-type arena allocation

Utilities to implement diagnostics and error reporting facilities.

This module provides an abstraction similar to iterators. Elements are produced in one direction, while errors bubble backwards until they are vented. This allows for complex transformation chains such as lexical analyzers and parsers to be constructed, where errors, warnings, or notices might be emitted without disturbing the transformation.

Lexer utilities.

A name table that internalizes all names presented to it and allows for them to be referred to by a lightweight tag. This structure is heavily inspired by the interner used in the Rust compiler.

This module implements the scoreboard building blocks. Scoreboards are the driving mechanism behind moore. They keep track of the results of each compilation step for every node in the graph. Each node can be accessed in a type safe manner by its ID.

A global source file table that assigns an opaque ID to each processed source file. This helps keeping the source location lean and allow for simple querying of information.

A collection of utility traits and functions specific to VHDL.

Macros

Print debug information. Omitted in release builds.

Generate a collection of arenas for different types.

Create a new node reference.

Create a new group of node references.

Create a new table that implements the NodeStorage trait.

Structs

A set of options for a session.

A set of verbosity options for a session.

Traits

Access session options and emit diagnostics.