This commit is contained in:
2026-04-11 15:21:03 -04:00
parent 229b026573
commit 2582e8c87e
15 changed files with 301 additions and 199 deletions
+3 -2
View File
@@ -5,6 +5,7 @@ pub enum Lit {
Number(String),
Bool(bool),
String(String),
Unit,
}
impl From<Lit> for Token {
@@ -18,8 +19,8 @@ impl std::fmt::Display for Lit {
match self {
Lit::Number(n) => write!(f, "{n}"),
Lit::Bool(b) => write!(f, "{b}"),
Lit::String(s) => write!(f, "{s}"),
Lit::String(s) => write!(f, "\"{s}\""),
Lit::Unit => write!(f, "()"),
}
}
}