Crate calyx_frontend

source ·
Expand description

Frontend parsing and AST representation.

Defines the frontend AST and the parser. The frontend representation is transformed into the representation defined in the ir module.

Re-exports§

Modules§

  • Abstract Syntax Tree for Calyx
  • Parser for Calyx programs.

Structs§

  • Attributes associated with a specific IR structure.
  • A representation of all the primitive definitions found while parsing the root program.
  • Definition of a port parameterized by a width type. Ports on Primitives can be parameteris and use Width. Ports on Components cannot be parameterized and therefore use u64.
  • Representation of a external primitive definition.
  • A Workspace represents all Calyx files transitively discovered while trying to compile a top-level file.

Enums§

  • Defines the known attributes that can be attached to IR nodes. All caps names represent attributes that are internal to the compiler and cannot be parsed back.
  • Attributes that are only allowed to take boolean values.
  • Direction of a port on a cell.
  • Internal attributes that cannot be parsed back from the IL.
  • Attributes that can take numeric values
  • Tracks the information for Primitives defined in the program.
  • Represents an abstract width of a primitive signature.

Constants§

Traits§