Crate bitsy_lang

source ·

Re-exports

Modules

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

Structs

  • A user-defined alt type.
  • A Circuit is a module instance. It allows you to walk the instance, following references to definitions.
  • A Context is an associative list which assigns each element with type information.
  • A user-defined enum type.
  • A user-defined fn function.
  • A LineCol is a container for a line and column.
  • A MatchArm is a case in a match expression.
  • A Package is a parsed Bitsy file. It consists of a number of top-level Items.
  • 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.
  • A Span tracks the span of an object parsed from a source.
  • A user-defined struct type.
  • A user-defined tb testbench.
  • Wires drive the value of port, node, or register.

Enums

Traits

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

Functions

Type Aliases