pretty printing -- copmlete for xo::ast::GeneralizedExpression
This commit is contained in:
parent
79e6867a8a
commit
b8ae0f95fa
28 changed files with 327 additions and 116 deletions
20
include/xo/expression/pretty_variable.hpp
Normal file
20
include/xo/expression/pretty_variable.hpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/* file pretty_variable.hpp
|
||||
*
|
||||
* author: Roland Conybeare, Jul 2025
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "pretty_expression.hpp"
|
||||
#include "Variable.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace print {
|
||||
template <>
|
||||
struct ppdetail<xo::ast::Variable> {
|
||||
static bool print_pretty(const ppindentinfo & ppii, const xo::ast::Expression & x) {
|
||||
return x.pretty_print(ppii);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue