pretty printing -- copmlete for xo::ast::GeneralizedExpression

This commit is contained in:
Roland Conybeare 2025-07-19 11:47:03 -05:00
commit 0cabcf2f2c
2 changed files with 29 additions and 0 deletions

View file

@ -636,6 +636,7 @@ namespace xo {
return ((s1 <=> s2) == std::strong_ordering::equal);
}
///@}
} /*namespace xo*/
/** end flatstring.hpp **/

View file

@ -0,0 +1,28 @@
/** @file flatstring_pretty.hpp
*
* Author: Roland Conybeare, Jul 2025
**/
#pragma once
#include "flatstring.hpp"
#include "flatstring_iostream.hpp"
#include "xo/indentlog/print/ppdetail_atomic.hpp"
namespace xo {
#ifndef ppdetail_atomic
namespace print {
struct ppindentinfo;
template <std::size_t N>
struct ppdetail<flatstring<N>> {
static bool print_pretty(const ppindentinfo & ppii,
const flatstring<N> & x) {
return ppdetail_atomic<flatstring<N>>::print_pretty(ppii, x);
};
};
}
#endif
}
/** end flatstring_pretty.hpp **/