module Pprint_modelica:sig..end
Format pretty-printing, but the
Format-based API is not (yet) exposed to keep the documentation workload small. Patches welcome.
All pretty printers return correct (i.e. parseable) Modelica Syntax.
val eq2str : ?max:int -> Syntax.equation -> stringmax : The maximum number of boxes opened (as defined by Format.set_max_boxes)val import2str : ?max:int -> Syntax.import -> stringimport-clause pretty printer.max : The maximum number of boxes opened (as defined by Format.set_max_boxes)val extend2str : ?max:int -> Syntax.extend -> stringextends-clause pretty printer.max : The maximum number of boxes opened (as defined by Format.set_max_boxes)val texpr2str : ?max:int -> Syntax.texp -> stringmax : The maximum number of boxes opened (as defined by Format.set_max_boxes)val td2str : ?max:int -> Syntax.typedef -> stringmax : The maximum number of boxes opened (as defined by Format.set_max_boxes)val defs2str : ?max:int -> Syntax.definition list -> stringparameter Real x,y; becomes parameter Real x; parameter Real y),
it works on a list instead of singletons.max : The maximum number of boxes opened (as defined by Format.set_max_boxes)val stmt2str : ?max:int -> Syntax.statement -> stringmax : The maximum number of boxes opened (as defined by Format.set_max_boxes)val texpr2str : ?max:int -> Syntax.texp -> stringmax : The maximum number of boxes opened (as defined by Format.set_max_boxes)val unit2str : ?max:int -> Syntax.unit_ -> stringmax : The maximum number of boxes opened (as defined by Format.set_max_boxes)val expr2str : ?max:int -> Syntax.exp -> stringmax : The maximum number of boxes opened (as defined by Format.set_max_boxes)