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§
pub use compiler::ParserOptions;
pub use compiler::parse;
pub use data_type::DataType;
pub use errors::ParseError as Error;
pub use location::Location;
pub use spec::Language;
pub use spec::TextPos;
pub use spec::TextRange;
pub use symbol_table::SymbolTable;
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.