From 850b77541b48f0ecb43f6c22dc07094af11524b8 Mon Sep 17 00:00:00 2001 From: greg Date: Sat, 18 Feb 2017 04:16:58 -0800 Subject: [PATCH] Display of lists sorta works --- src/schala_lang/parser.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/schala_lang/parser.rs b/src/schala_lang/parser.rs index 9bcc4ea..bce4ad4 100644 --- a/src/schala_lang/parser.rs +++ b/src/schala_lang/parser.rs @@ -94,7 +94,11 @@ impl fmt::Display for Expression { write!(f, "«function: {}, {} arg(s)»", name, parameters.len()) } ListLiteral(ref items) => { - write!(f, "[ ]") + write!(f, "["); + for item in items { + write!(f, ", {}", item); + } + write!(f, "]") } _ => write!(f, "UNIMPLEMENTED"), }