diff options
author | Qyriad <qyriad@qyriad.me> | 2024-06-22 21:17:41 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-07-04 15:55:38 -0600 |
commit | 139cfdfb5309407694b92f5f710400a5bc03f313 (patch) | |
tree | 59d2963a4ce9dd42fd18795208a6646cbf0a742b /src/libexpr/print.cc | |
parent | 59bf6825ef34dd8951302fb033837c2658b2367d (diff) |
add an ExprPrinter class, like ValuePrinter
To be used Shortly
Change-Id: I9def7975aa55f251eb8486391677771f7352d7ce
Diffstat (limited to 'src/libexpr/print.cc')
-rw-r--r-- | src/libexpr/print.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libexpr/print.cc b/src/libexpr/print.cc index e387a09fb..87db004b2 100644 --- a/src/libexpr/print.cc +++ b/src/libexpr/print.cc @@ -574,4 +574,10 @@ fmt_internal::HintFmt & fmt_internal::HintFmt::operator%(const ValuePrinter & va return *this; } +std::ostream & operator<<(std::ostream & output, ExprPrinter const & printer) +{ + printer.expr.show(printer.state.symbols, output); + return output; +} + } |