Display of lists sorta works

This commit is contained in:
greg 2017-02-18 04:16:58 -08:00
parent dbf5886aad
commit 850b77541b

View File

@ -94,7 +94,11 @@ impl fmt::Display for Expression {
write!(f, "«function: {}, {} arg(s)»", name, parameters.len())
}
ListLiteral(ref items) => {
write!(f, "[ <a list> ]")
write!(f, "[");
for item in items {
write!(f, ", {}", item);
}
write!(f, "]")
}
_ => write!(f, "UNIMPLEMENTED"),
}