about summary refs log tree commit diff
path: root/src/libexpr/nixexpr.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-20T06·44+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-20T07·13+0200
commitecc2c8f46452c5041dca34bcfd24bbd863d1d46e (patch)
tree9a67aa5cc40dbaf1d7f2621694bf16cbd6d787e8 /src/libexpr/nixexpr.hh
parent84a13dc576496f1227665259c61f86184f452f51 (diff)
Improve printing of ASTs
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r--src/libexpr/nixexpr.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh
index 0eaa362fd68b..121dc58f25f7 100644
--- a/src/libexpr/nixexpr.hh
+++ b/src/libexpr/nixexpr.hh
@@ -280,7 +280,7 @@ struct ExprOpNot : Expr
         Expr##name(const Pos & pos, Expr * e1, Expr * e2) : pos(pos), e1(e1), e2(e2) { }; \
         void show(std::ostream & str) \
         { \
-            str << *e1 << " " s " " << *e2; \
+            str << "(" << *e1 << " " s " " << *e2 << ")";   \
         } \
         void bindVars(const StaticEnv & env) \
         { \