pretty printing -- copmlete for xo::ast::GeneralizedExpression
This commit is contained in:
parent
fad6b45d86
commit
0cabcf2f2c
2 changed files with 29 additions and 0 deletions
|
|
@ -636,6 +636,7 @@ namespace xo {
|
||||||
return ((s1 <=> s2) == std::strong_ordering::equal);
|
return ((s1 <=> s2) == std::strong_ordering::equal);
|
||||||
}
|
}
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
} /*namespace xo*/
|
} /*namespace xo*/
|
||||||
|
|
||||||
/** end flatstring.hpp **/
|
/** end flatstring.hpp **/
|
||||||
|
|
|
||||||
28
include/xo/flatstring/flatstring_pretty.hpp
Normal file
28
include/xo/flatstring/flatstring_pretty.hpp
Normal 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 **/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue