1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
// LIB.rs
// by Lut99
//
// Created:
// 18 Aug 2022, 09:49:38
// Last edited:
// 17 Jan 2023, 14:36:31
// Auto updated?
// Yes
//
// 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.
//
// Define private modules
mod parser;
mod scanner;
// Define public modules
pub mod compiler;
pub mod data_type;
pub mod errors;
pub mod location;
pub mod spec;
pub mod symbol_table;
// Bring some stuff into the crate namespace
pub use compiler::{ParserOptions, parse};
pub use data_type::DataType;
pub use errors::ParseError as Error;
pub use location::Location;
pub use parser::ast;
pub use spec::{Language, TextPos, TextRange};
pub use symbol_table::SymbolTable;