Macro lrpar::lrpar_mod

source ·
macro_rules! lrpar_mod {
    ($path:expr) => { ... };
}
Expand description

A convenience macro for including statically compiled .y files. A file src/a/b/c.y processed by CTParserBuilder::grammar_in_src_dir can then be used in a crate with lrpar_mod!("a/b/c.y").

Note that you can use lrpar_mod with CTParserBuilder::output_path if, and only if, the output file was placed in std::env::var("OUT_DIR") or one of its subdirectories.