Module Syncom.Parenthesizer

Utilities for creating expression pretty-printers with minimal parentheses.

Handling Parentheses

Parentheses are re-introduced during pretty-printing using the precedence ordering specified in the parser. Operator associativities also need to be considered to avoid adding extraneous parentheses.

module type PARENTHESIZER = sig ... end

Module type for stateful helper printers for parenthesizing applications with user-defined operators.