From 490070cbb26d0853c6011407d8d72f0075fd7322 Mon Sep 17 00:00:00 2001 From: NanoTech Date: Sun, 11 Dec 2016 20:23:57 -0600 Subject: Format more operators, still ignoring precedence for now --- src/core.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core.rs') diff --git a/src/core.rs b/src/core.rs index 9758830..f66595b 100644 --- a/src/core.rs +++ b/src/core.rs @@ -367,8 +367,14 @@ impl<'i, S, A: Display> Expr<'i, S, A> { use Expr::*; match self { // FIXME precedence + &BoolOr(ref a, ref b) => { a.fmt_d(f)?; f.write_str(" || ")?; b.fmt_c(f) } + &TextAppend(ref a, ref b) => { a.fmt_d(f)?; f.write_str(" ++ ")?; b.fmt_c(f) } &NaturalPlus(ref a, ref b) => { a.fmt_d(f)?; f.write_str(" + ")?; b.fmt_c(f) } + &BoolAnd(ref a, ref b) => { a.fmt_d(f)?; f.write_str(" && ")?; b.fmt_c(f) } + &Combine(ref a, ref b) => { a.fmt_d(f)?; f.write_str(" ^ ")?; b.fmt_c(f) } &NaturalTimes(ref a, ref b) => { a.fmt_d(f)?; f.write_str(" * ")?; b.fmt_c(f) } + &BoolEQ(ref a, ref b) => { a.fmt_d(f)?; f.write_str(" == ")?; b.fmt_c(f) } + &BoolNE(ref a, ref b) => { a.fmt_d(f)?; f.write_str(" != ")?; b.fmt_c(f) } &Note(_, ref b) => b.fmt_c(f), a => a.fmt_d(f), } -- cgit v1.2.3