Skip to content

Commit a1a99a2

Browse files
committed
remove nom dependency
1 parent 632cea4 commit a1a99a2

File tree

3 files changed

+59
-94
lines changed

3 files changed

+59
-94
lines changed

Cargo.lock

Lines changed: 58 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ gt_debug=[]
1010

1111
[dependencies]
1212
anyhow = "1.0.83"
13+
bilge = "0.2.0"
1314
clap = { version = "4.5.4", features = ["derive"] }
1415
itoa = "1.0.11"
1516
midly = "0.5.3"
16-
nom = "7.1.3"
17-
nom-supreme = "0.8.0"
1817
once_cell = "1.19.0"
1918
pretty_assertions = "1.4.0"
2019
rustc-hash = "2.0.0"
2120
thiserror = "1.0.60"
22-
tinyvec = { version = "1.8.0", features = ["alloc"] }
2321
yansi = "1.0.1"
2422

2523
[dev-dependencies]

src/lib.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -85,24 +85,3 @@ pub fn digit_cnt_u8(num: u8) -> u8 {
8585
// }
8686
num.checked_ilog10().unwrap_or(0) as u8 + 1
8787
}
88-
89-
pub fn collect_parse_error(x: &nom::Err<VerboseError<&str>>) -> String {
90-
let mut collected = String::new();
91-
collected += &format!(
92-
"{}",
93-
match x {
94-
nom::Err::Incomplete(_) => unreachable!(),
95-
nom::Err::Error(x) => x,
96-
nom::Err::Failure(x) => x,
97-
}
98-
);
99-
collected
100-
}
101-
102-
pub const BOLD_YELLOW_FORMAT: &str = "\x1b[1;33m";
103-
pub const GREEN_FORMAT: &str = "\x1b[32m";
104-
pub const CLEAR_FORMAT: &str = "\x1b[0m";
105-
106-
use nom::error::VerboseError;
107-
pub use nom::Err;
108-
use yansi::Paint;

0 commit comments

Comments
 (0)