Add another pp example

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-08-17 12:38:32 -07:00
parent 80ec48c93d
commit f1961ab33f

View file

@ -115,6 +115,13 @@ static void tst7() {
std::cout << fmt(And(Const("x"), Const("y"))) << "\n";
}
static void tst8() {
frontend fe;
formatter fmt = mk_pp_formatter(fe);
fe.add_infixl("<-$->", 10, const_name(mk_refl_fn()));
std::cout << fmt(fe.find_object("Trivial")) << "\n";
}
int main() {
tst1();
tst2();
@ -123,5 +130,6 @@ int main() {
tst5();
tst6();
tst7();
tst8();
return has_violations() ? 1 : 0;
}