Expand description
Pretty printer converting Expr back to surface syntax.
Pretty printer for panproto expressions.
Converts panproto_expr::Expr back into Haskell-style surface syntax.
The output is designed to round-trip through the parser:
parse(tokenize(pretty_print(&e))) == e for well-formed expressions.
Parentheses are minimized using precedence awareness, and operators are printed in infix notation where the parser supports it.
Functionsยง
- pretty_
print - Pretty print an expression to a string.