Macro beans::parser::include_parser
source · macro_rules! include_parser {
(lexer => compiled $path:literal, $($rest:tt)*) => { ... };
(lexer => $path:literal, $($rest:tt)*) => { ... };
(@parser($warnings:expr, $lexer:expr) parser => compiled $path:literal $(,)?) => { ... };
(@parser($warnings:expr, $lexer:expr) parser => $path:literal $(,)?) => { ... };
}
Expand description
Create a parser, shipping all the grammars into the binary.
let (lexer, parser) = include_parser!(
lexer => compiled "gmrs/dummy.clx",
parser => compiled "gmrs/dummy.cgr",
).unwrap().unwrap();