mers/mers_lib/src/lib.rs

33 lines
1.1 KiB
Rust
Raw Normal View History

/// data and types in mers
2023-07-28 00:33:15 +02:00
pub mod data;
/// struct to represent errors the user may face
pub mod errors;
/// shared code handling scopes to guarantee that compiler and runtime scopes match
2023-07-28 00:33:15 +02:00
pub mod info;
/// parser implementation.
#[cfg(feature = "parse")]
2023-07-28 00:33:15 +02:00
pub mod parsing;
pub mod program;
#[cfg(feature = "parse")]
2023-07-28 00:33:15 +02:00
pub mod prelude_compile {
pub use crate::parsing::parse;
pub use crate::parsing::Source;
pub use crate::program::configs::Config;
pub use crate::program::parsed::{CompInfo, MersStatement as ParsedMersStatement};
2023-07-28 00:33:15 +02:00
pub use crate::program::run::MersStatement as RunMersStatement;
}
/// can be used to extend the mers config.
/// with this, you can add values (usually functions),
/// or add your own types to the language:
///
/// fn add_thing(cfg: Config) -> Config {
/// /// use the methods on Config to add things (see the Config source code for examples)
/// }
///
/// then use the Config when compiling and running your code, and your customizations will be available.
pub mod prelude_extend_config {
pub use crate::program::configs::Config;
}