Clean up main.rs, stdout, some compile warnings

This commit is contained in:
2025-06-22 15:03:59 -07:00
parent b65e188cb9
commit c29361214a
3 changed files with 9 additions and 41 deletions
-16
View File
@@ -86,22 +86,6 @@ pub fn parse_stat_labels(stat: &Stat) -> ParsedStat {
result
}
pub fn print_labels(b: &Stat) {
let code = &b.code;
let mut parser = ParseState::new(code);
assert!(
grammar::program(&mut parser),
"Couldn't parse code: {:?}",
code
);
for capture in parser.captures() {
if capture.kind() == Tag::Label {
println!("- {}", capture.text());
}
}
}
mod grammar {
use peg_macro::grammar;