2023-07-28 15:20:02 +02:00
|
|
|
/// data and types in mers
|
2023-07-28 00:33:15 +02:00
|
|
|
pub mod data;
|
2023-07-28 15:20:02 +02:00
|
|
|
/// shared code handling scopes to guarantee that compiler and runtime scopes match
|
2023-07-28 00:33:15 +02:00
|
|
|
pub mod info;
|
2023-07-28 15:20:02 +02:00
|
|
|
/// parser implementation.
|
|
|
|
#[cfg(feature = "parse")]
|
2023-07-28 00:33:15 +02:00
|
|
|
pub mod parsing;
|
|
|
|
pub mod program;
|
|
|
|
|
2023-07-28 15:20:02 +02:00
|
|
|
#[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::MersStatement as ParsedMersStatement;
|
|
|
|
pub use crate::program::run::MersStatement as RunMersStatement;
|
|
|
|
}
|
2023-07-28 15:20:02 +02:00
|
|
|
|
|
|
|
/// 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;
|
|
|
|
}
|