File tree Expand file tree Collapse file tree 3 files changed +59
-94
lines changed
Expand file tree Collapse file tree 3 files changed +59
-94
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,14 @@ gt_debug=[]
1010
1111[dependencies ]
1212anyhow = " 1.0.83"
13+ bilge = " 0.2.0"
1314clap = { version = " 4.5.4" , features = [" derive" ] }
1415itoa = " 1.0.11"
1516midly = " 0.5.3"
16- nom = " 7.1.3"
17- nom-supreme = " 0.8.0"
1817once_cell = " 1.19.0"
1918pretty_assertions = " 1.4.0"
2019rustc-hash = " 2.0.0"
2120thiserror = " 1.0.60"
22- tinyvec = { version = " 1.8.0" , features = [" alloc" ] }
2321yansi = " 1.0.1"
2422
2523[dev-dependencies ]
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments