Macro lrlex::lrlex_mod

source ยท
macro_rules! lrlex_mod {
    ($path:expr) => { ... };
}
Expand description

A convenience macro for including statically compiled .l files. A file src/a/b/c.l processed by CTLexerBuilder::lexer_in_src_dir can then be used in a crate with lrlex_mod!("a/b/c.l").

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