Crate bitsy_lang

Source

Re-exports§

pub use crate::ast::WordLit;
pub use ast::WireType;

Modules§

ast
ast is the submodule for the AST parser.
sim
sim is the submodule where the naive simulator goes.

Structs§

Circuit
A Circuit is a module instance. It allows you to walk the instance, following references to definitions.
Context
A Context is an associative list which assigns each element with type information.
EnumTypeDef
A user-defined enum type.
FnDef
A user-defined fn function.
LineCol
A LineCol is a container for a line and column.
Loc
A Loc tracks the span of an object parsed from a source.
MatchArm
A MatchArm is a case in a match expression.
Package
A Package is a parsed Bitsy file. It consists of a number of top-level Items.
Path
SourceInfo
A SourceInfo maintains location data for parsed objects. Maintains the filename (if from a file) or the originating string (if from a string). Helps with the conversion from byte-position in the source to a LineCol.
StructTypeDef
A user-defined struct type.
When
Wire
Wires drive the value of port, node, or register.

Enums§

BinOp
BitsyError
Component
A Component is a declaration that lives inside of a mod or ext definiton.
Expr
An expression.
Item
A top-level declaration in a Package.
Pat
A Pat is a pattern for a match expression.
Source
Type
A type classifier for crate::sim::Values.
TypeError
UnOp

Traits§

HasLoc
Many objects have location information. HasLoc allows you to call HasLoc::loc to get the span information.

Functions§

load_package_from_file
load_package_from_string

Type Aliases§

Length
The length of a Type::Vec.
Name
Width
The bitwidth of a Type::Word.