prepare for modules

This commit is contained in:
2025-04-25 04:16:54 -04:00
parent 0ceb82445e
commit 4e7c201690
30 changed files with 369 additions and 333 deletions
+4 -1
View File
@@ -34,6 +34,7 @@ pub enum Symbol {
Pipe,
DoublePipe,
Comma,
Hash,
}
impl Symbol {
@@ -68,6 +69,7 @@ impl Symbol {
'&' => Self::Ampersand,
'|' => Self::Pipe,
',' => Self::Comma,
'#' => Self::Hash,
_ => return None,
})
}
@@ -104,7 +106,7 @@ impl Symbol {
Self::Dot => match next {
'.' => Self::DoubleDot,
_ => return,
}
},
_ => return,
};
cursor.advance();
@@ -141,6 +143,7 @@ impl Symbol {
Self::DoubleAmpersand => "&&",
Self::Pipe => "|",
Self::DoublePipe => "||",
Self::Hash => "#",
}
}
}