Expression + Value printer
# http://forum.nim-lang.org/t/2217
import terminal
template echox(x: typed) =
terminal.setForegroundColor stdout, fgRed
echo x.astToStr
terminal.setForegroundColor stdout, fgBlue
echo x
terminal.resetAttributes()
proc f(x = 3): int = x
echox 1 + 2 * f()
INFO