add string table, StringList representation

This commit is contained in:
Mark Thom
2018-08-21 00:22:16 -06:00
parent 01d6ef099f
commit 013eb29e2b
11 changed files with 36 additions and 18 deletions

View File

@@ -44,7 +44,7 @@ impl fmt::Display for Constant {
&Constant::Number(ref n) =>
write!(f, "{}", n),
&Constant::String(ref s) =>
write!(f, "\"{}\"", s),
write!(f, "\"{}\"", s.borrow()),
&Constant::Usize(integer) =>
write!(f, "u{}", integer)
}