Wire together initial label sanitization pass

This commit is contained in:
2025-06-15 12:28:05 -07:00
parent 30e81381ff
commit 68938b5e00
4 changed files with 50 additions and 4 deletions
+3 -3
View File
@@ -8,8 +8,8 @@ use crate::{
world::Stat,
};
type ParsedStat = Vec<Chunk>;
enum Chunk {
pub type ParsedStat = Vec<Chunk>;
pub enum Chunk {
Verbatim(String),
Label(LabelName),
Reference(LabelName),
@@ -22,7 +22,7 @@ pub struct LabelName {
pub local: Option<CompactString>,
}
fn parse_stat_labels(stat: &Stat) -> ParsedStat {
pub fn parse_stat_labels(stat: &Stat) -> ParsedStat {
let code = &stat.code;
let mut parser = ParseState::new(code);
assert!(