now workspaces for modular compilation (maybe faster)
This commit is contained in:
14
grammar/Cargo.toml
Normal file
14
grammar/Cargo.toml
Normal 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
3
grammar/build.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
lalrpop::process_src().unwrap();
|
||||
}
|
||||
1088
grammar/src/grammar.lalrpop
Normal file
1088
grammar/src/grammar.lalrpop
Normal file
File diff suppressed because it is too large
Load Diff
4
grammar/src/lib.rs
Normal file
4
grammar/src/lib.rs
Normal file
@ -0,0 +1,4 @@
|
||||
lalrpop_util::lalrpop_mod!(
|
||||
#[allow(clippy::uninlined_format_args)] pub grammar, // name of module
|
||||
"/grammar.rs" // location of parser
|
||||
);
|
||||
Reference in New Issue
Block a user