Module ast

Source
Expand description

ast is the submodule for the AST parser.

Structs§

EnumTypeDef
A user-defined enum type.
FnDef
A user-defined struct type.
MatchArm
A MatchArm is a case for a match expression.
ModDef
Package
A Package is a compilation unit built from a single file.
StructTypeDef
A user-defined struct type.
When
A When statement drives procedural logic.
Wire
Wires drive the value of port, node, or register.
WordLit
A WordLit is a literal for a hardware integer with an optional width ascription.

Enums§

Decl
A Decl is a declaration that lives inside of a mod or ext definiton.
Expr
An expression.
Item
A top-level declaration in a Package.
Target
A reference to a hardware component, either in this module, or in a child module.
Type
A type classifier for values.
WireType
The different kinds of Wires in Bitsy.

Functions§

parse_package_from_string