diff --git a/src/eval.rs b/src/eval.rs index 78eff18..d2a269d 100644 --- a/src/eval.rs +++ b/src/eval.rs @@ -139,6 +139,7 @@ impl Evaluator { match &op[..] { "+" => match (left, right) { (Number(l), Number(r)) => Number(l + r), + (StringLiteral(s1), StringLiteral(s2)) => StringLiteral(format!("{}{}", s1, s2)), _ => Null, }, "-" => match (left, right) {