More examples, better defaults
grammar_separated is grammar but with all functions exposed
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
fn main() {
|
||||
lalrpop::process_src().unwrap();
|
||||
lalrpop::Configuration::new()
|
||||
.emit_rerun_directives(true)
|
||||
.process_dir("./src")
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
@ -294,7 +294,6 @@ CTX_process: process::Process = {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// EnvironmentParser
|
||||
// -----------------------------------------------------------------------------
|
||||
@ -794,7 +793,7 @@ NodeDisplayBase: graph::NodeDisplayBase = {
|
||||
graph::NodeDisplayBase::Context,
|
||||
"UncommonEntities" =>
|
||||
graph::NodeDisplayBase::UncommonEntities,
|
||||
"MaskUncommonentities" <mask: Set> =>
|
||||
"MaskUncommonEntities" <mask: Set> =>
|
||||
graph::NodeDisplayBase::MaskUncommonEntities{mask},
|
||||
}
|
||||
|
||||
|
||||
@ -4,8 +4,13 @@ pub mod user_error {
|
||||
pub use crate::custom_error::*;
|
||||
}
|
||||
|
||||
lalrpop_util::lalrpop_mod!(
|
||||
#[allow(clippy::uninlined_format_args)]
|
||||
#[allow(clippy::type_complexity)] pub grammar, // name of module
|
||||
"/grammar.rs" // location of parser
|
||||
);
|
||||
#[rustfmt::skip]
|
||||
#[allow(clippy::extra_unused_lifetimes)]
|
||||
#[allow(clippy::needless_lifetimes)]
|
||||
#[allow(clippy::let_unit_value)]
|
||||
#[allow(clippy::just_underscores_and_digits)]
|
||||
#[allow(clippy::uninlined_format_args)]
|
||||
#[allow(clippy::type_complexity)]
|
||||
pub mod grammar {
|
||||
include!(concat!(env!("OUT_DIR"), "/src/grammar.rs"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user