now workspaces for modular compilation (maybe faster)

This commit is contained in:
elvis
2025-09-12 16:34:58 +02:00
parent fa1127358d
commit e41d92ac36
44 changed files with 318 additions and 227 deletions

14
grammar/Cargo.toml Normal file
View File

@ -0,0 +1,14 @@
[package]
name = "grammar"
version = "0.1.0"
edition = "2024"
[build-dependencies]
lalrpop = "*"
[dependencies]
rsprocess = { path = "../rsprocess/" }
assert = { path = "../assert/" }
execution = { path = "../execution/" }
regex = { version = "*", features = ["unicode-bool"] }
lalrpop-util = { version = "*", features = ["lexer", "unicode"] }

3
grammar/build.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
lalrpop::process_src().unwrap();
}

1088
grammar/src/grammar.lalrpop Normal file

File diff suppressed because it is too large Load Diff

4
grammar/src/lib.rs Normal file
View File

@ -0,0 +1,4 @@
lalrpop_util::lalrpop_mod!(
#[allow(clippy::uninlined_format_args)] pub grammar, // name of module
"/grammar.rs" // location of parser
);