Module brane_dsl::ast

source ·
Expand description

Defines the AST that the brane-dsl parses to.

Structs§

  • Defines a code block (i.e., a series of statements).
  • Defines an identifier.
  • Defines a pair of metadata.
  • Defines the toplevel Program element.
  • Defines a (name, type) pair in a class definition.
  • Defines an (identifier, expr) pair.

Enums§

  • Defines an attribute (i.e., compiler directive).
  • Defines binary operators for this crate.
  • Defines a simple enum that is either a Data or an IntermediateResult.
  • Defines an expression.
  • Defines a literal constant.
  • Defines a common enum for both operator types.
  • Defines a single statement.
  • Defines unary operators for this crate.

Traits§

  • Defines a general AST node.