Skip to content

Commit b0404ab

Browse files
committed
Improve ast.
Signed-off-by: James Goppert <james.goppert@gmail.com>
1 parent 62a231e commit b0404ab

File tree

5 files changed

+288
-123
lines changed

5 files changed

+288
-123
lines changed

Cargo.lock

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ rerun_except = "1.0.0"
1313
[dependencies]
1414
clap = { version = "4.5.20", features = ["derive"] }
1515
codespan-reporting = "0.11.1"
16+
indexmap = { version = "2.7.1", features = ["serde"] }
1617
lalrpop-util = "0.22.0"
1718
logos = "0.15.0"
1819
macro_rules_attribute = "0.2.0"

build.rs

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
use std::process::Command;
22

33
fn main() {
4-
println!("cargo:rerun-if-changed=src/s0_lexer/lexer.rs");
5-
println!("cargo:rerun-if-changed=src/s0_lexer/mod.rs");
6-
println!("cargo:rerun-if-changed=src/s0_lexer/token.rs");
7-
println!("cargo:rerun-if-changed=src/s1_parser/modelica.lalrpop");
8-
println!("cargo:rerun-if-changed=src/s1_parser/ast.rs");
9-
println!("cargo:rerun-if-changed=src/s1_parser/mod.rs");
10-
println!("cargo:rerun-if-changed=src/s1_parser/parser_helper.rs");
11-
lalrpop::process_root().unwrap();
4+
println!("cargo:rerun-if-changed=src/s0_lexer");
5+
println!("cargo:rerun-if-changed=src/s1_parser");
6+
lalrpop::Configuration::new()
7+
.emit_rerun_directives(true)
8+
.process_current_dir()
9+
.unwrap();
1210

1311
// Attempt to retrieve the current Git version
1412
let output = Command::new("git")

0 commit comments

Comments
 (0)