rustemo 0.9.1

A LR/GLR parser generator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Loads generated parser modules from the Cargo OUT_DIR location.
///
/// Used when the parser is generated from the `build.rs` script.
///
/// This macro and the general idea of bootstrapping approach is based on idea
/// from [lalrpop project](https://github.com/lalrpop/lalrpop)
#[macro_export]
macro_rules! rustemo_mod {
    ($(#[$attr:meta])* $vis:vis $modname:ident, $source:expr) => {
        #[allow(dead_code)]
        $(#[$attr])* $vis mod $modname { include!(concat!(env!("OUT_DIR"),
                                                          $source, "/",
                                                          stringify!($modname), ".rs")); }
    };
}