xo-reader: + pretty-printing support [WIP]

This commit is contained in:
Roland Conybeare 2025-07-13 21:21:20 -05:00
commit adc0ca287e
18 changed files with 84 additions and 21 deletions

View file

@ -7,6 +7,7 @@
#include "exprstate.hpp"
#include "xo/indentlog/print/vector.hpp"
#include "xo/indentlog/print/pretty.hpp"
namespace xo {
namespace scm {
@ -64,6 +65,21 @@ namespace xo {
return os;
}
} /*namespace scm*/
#ifndef ppdetail_atomic
namespace print {
template <>
struct ppdetail<xo::scm::exprstatestack *> {
static bool print_upto(ppstate * pps, const xo::scm::exprstatestack * x) {
return ppdetail_atomic<const xo::scm::exprstatestack *>::print_upto(pps, x);
}
static void print_pretty(ppstate * pps, const xo::scm::exprstatestack * x) {
ppdetail_atomic<const xo::scm::exprstatestack *>::print_pretty(pps, x);
}
};
}
#endif
} /*namespace xo*/