handle non-list cases in '', add '' as a built-in (re: issue #31)

This commit is contained in:
Mark Thom
2018-05-01 10:11:27 -06:00
parent 516b67460d
commit 0458a70527
5 changed files with 24 additions and 8 deletions

View File

@@ -537,7 +537,7 @@ impl fmt::Display for Constant {
&Constant::Atom(ref atom) =>
write!(f, "{}", atom),
&Constant::Char(c) =>
write!(f, "{}", c as u8),
write!(f, "'{}'", c as u8),
&Constant::EmptyList =>
write!(f, "[]"),
&Constant::Number(ref n) =>