summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNanoTech2016-12-11 20:23:57 -0600
committerNanoTech2017-03-10 23:48:29 -0600
commit490070cbb26d0853c6011407d8d72f0075fd7322 (patch)
treed97003d3abb634b15f815ca57ef6f208299db397 /src
parentb21c60471614d516b046a206090c03b91da4604e (diff)
Format more operators, still ignoring precedence for now
Diffstat (limited to '')
-rw-r--r--src/core.rs6
1 files changed, 6 insertions, 0 deletions
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),
}