More examples, better defaults

grammar_separated is grammar but with all functions exposed
This commit is contained in:
elvis
2025-10-17 19:45:20 +02:00
parent 164e1d883c
commit 08d195ab06
30 changed files with 8698 additions and 49 deletions

View File

@ -1,3 +1,6 @@
fn main() {
lalrpop::process_src().unwrap();
lalrpop::Configuration::new()
.emit_rerun_directives(true)
.process_dir("./src")
.unwrap();
}

View File

@ -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},
}

View File

@ -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"));
}