Crate brane_dsl

source ·
Expand description

Defines a library that converts BraneScript or Bakery to a temporary AST. This AST may then be further analysed / compiled in the brane-ast crate.

Re-exports§

Modules§

  • Defines the AST that the brane-dsl parses to.
  • Defines the general compilation functions that generate the (incomplete) AST.
  • Defines the possible data types in the BraneScript/Bakery AST.
  • Defines errors that occur in the brane-dsl crate. Additionally, provides some nice formatting options for parser errors.
  • Defines helpful enums and functions for location analysis.
  • Contains (some of the) common structs and interfaces for the brane-dsl crate.
  • Implements a simple SymbolTable struct that we use to keep track of definitions and their assigned types.

Macros§

  • Defines a macro that parses the given token from the given stream of tokens.