1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 23:11:16 +02:00

Improve printing of ASTs

This commit is contained in:
Eelco Dolstra 2014-10-20 08:44:32 +02:00
parent 84a13dc576
commit ecc2c8f464
3 changed files with 58 additions and 16 deletions

View file

@ -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) \
{ \