work
This commit is contained in:
@@ -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, "()"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user