Caml1999I031uN#L.Stdlib__Format)formatter8@@@A@@@@@*format.mlimSSmSa@@@@ @A@+pp_open_box@@@@k@#intA@@@l$unitF@@@m@@n@@o@@@(A@(open_box@@@@p@@@q@@r@12@@;B@,pp_close_box@0@@@s@)@@@t-@@@u@@v@@w@IJ@@SC@)close_box@<@@@x@@@@y@@z@\]@@fD@,pp_open_hbox@[@@@{@T@@@|X@@@}@@~@@@tXXuX@@~E@)open_hbox@g@@@k@@@@@@@@F@,pp_open_vbox@@@@@@@@@@@@@@@@@@G@)open_vbox@@@@@@@@@@@@H@-pp_open_hvbox@@@@@@@@@@@@@@@@    B@@I@*open_hvbox@@@@@@@@@@ C C C _@@J@.pp_open_hovbox@@@@@@@@@@@@@@@@!!!!@@K@+open_hovbox@@@@@@@@@@!! !!@@L@/pp_print_string@@@@@&stringO@@@@@@@@@@@"#x#x##x#@@,M@,print_string@@@@@@@@@@5##6##@@?N@.pp_print_bytes@4@@@@%bytesC@@@3@@@@@@@@O$$P$$J@@YO@+print_bytes@@@@F@@@@@@b$K$Kc$K$j@@lP@+pp_print_as@a@@@@`@@@@`@@@d@@@@@@@@@@$$$$@@Q@(print_as@y@@@@y@@@}@@@@@@@@%%%%$@@R@,pp_print_int@@@@@@@@@@@@@@@@%%%%@@S@)print_int@@@@@@@@@@%%%%@@T@.pp_print_float@@@@@%floatD@@@@@@@@@@@&9&9&9&h@@U@+print_float@@@@@@@@@@&i&i&i&@@V@-pp_print_char@@@@@$charB@@@@@@@@@@@ && &'@@W@*print_char@@@@@@@@@@''''@@(X@-pp_print_bool@@@@@$boolE@@@@@@@@@@@8']']9']'@@BY@*print_bool@@@@/@@@@@@K''L''@@UZ@.pp_print_space@J@@@@C@@@G@@@@@@@@c+:+:d+:+h@@m[@+print_space@V@@@Z@@@@@@v+i+iw+i+@@\@,pp_print_cut@u@@@@n@@@r@@@@@@@@,b,b,b,@@]@)print_cut@@@@@@@@@@,,,,@@^@.pp_print_break@@@@@@@@@@@@@@@@@@@@@@#-~-~#-~-@@_@+print_break@@@@@@@@@@@@@@@@$--$--@@`@5pp_print_custom_break@@@@$fits@@@@@@@@@@@&breaks@@@@@@@@@@@@@@@@@@@@@-..1/I/O@@a@0pp_force_newline@@@@@ @@@@@@@@@@@,W33-W34@@6b@-force_newline@@@@#@@@@@@?X44@X442@@Ic@3pp_print_if_newline@>@@@@7@@@ ;@@@ @@ @@ @Wc55Xc55@@ad@0print_if_newline@J@@@ N@@@@@@jd55kd55@@te@.pp_print_flush@i@@@@b@@@f@@@@@@@@l66l66@@f@+print_flush@u@@@y@@@@@@m66m66@@g@0pp_print_newline@@@@@@@@@@@@@@@@;Y;Y;Y;@@h@-print_newline@@@@@@@@@@;;;;@@i@-pp_set_margin@@@@ @@@@!@@@"@@#@@$@=U=U=U=@@j@*set_margin@@@@%@@@&@@'@====@@k@-pp_get_margin@@@@(@@@@)@@@*@@+@@,@@r@r@r@@@ l@*get_margin@@@@-@@@.@@/@@@@@@@ m@1pp_set_max_indent@@@@0@@@@1@@@2@@3@@4@.AA/AAN@@8n@.set_max_indent@'@@@5%@@@6@@7@AAOAOBAOAo@@Ko@1pp_get_max_indent@@@@@8@9@@@9C@@@:@@;@@<@YGGZGG@@cp@.get_max_indent@L@@@=V@@@>@@?@lGGmGG@@vq@(geometry8@@*max_indent>@h@@@A~HHHH@@s&margin?@t@@@@HHHH@@t@@A@@@@@HHHH@@@@rA@.check_geometry@*@@@Bo@@@C@@D@HHHI @@u@/pp_set_geometry@@@@E*max_indent@@@F&margin@@@G@@@H@@I@@J@@K@IZIZIZI@@v@,set_geometry*max_indent@@@L&margin@@@M@@@N@@O@@P@IIII@@w@4pp_safe_set_geometry@@@@Q*max_indent@@@R&margin@@@S@@@T@@U@@V@@W@IIIJ&@@ x@1safe_set_geometry*max_indent@@@X&margin@@@Y@@@Z@@[@@\@J'J' J'Jc@@)y@2pp_update_geometry@@@@]@@@@@^@@@_@@`@@@a@@b@@c@;MM<MM@@Ez@/update_geometry@@@@@d@@@e@@f6@@@g@@h@RMMSMN*@@\{@/pp_get_geometry@Q@@@i@J@@@j@@@k@@l@@m@iN,N,jN,N^@@s|@,get_geometry@\@@@n@@@o@@p@{ N_N_| N_N@@}@0pp_set_max_boxes@z@@@q@y@@@rw@@@s@@t@@u@OOOP@@~@-set_max_boxes@@@@v@@@w@@x@PPPP2@@@0pp_get_max_boxes@@@@y@@@@z@@@{@@|@@}@%QVQV%QVQ@@@@-get_max_boxes@@@@~@@@@@@&QQ&QQ@@A@1pp_over_max_boxes@@@@@@@@@@@@@@@@+QQ+QR.@@B@.over_max_boxes@@@@@@@@@@,R/R/,R/RP@@C@,pp_open_tbox@@@@@@@@@@@@@@@@CU7U7CU7Uc@@D@)open_tbox@@@@ @@@@@@'DUdUd(DUdU@@1E@-pp_close_tbox@&@@@@@@@#@@@@@@@@?RW{W{@RW{W@@IF@*close_tbox@2@@@6@@@@@@RSWWSSWW@@\G@*pp_set_tab@Q@@@@J@@@N@@@@@@@@jVWWkVWX)@@tH@'set_tab@]@@@a@@@@@@}WX*X*~WX*XD@@I@,pp_print_tab@|@@@@u@@@y@@@@@@@@ZXXZXX@@J@)print_tab@@@@@@@@@@[XX[XX@@K@/pp_print_tbreak@@@@@@@@@@@@@@@@@@@@@@cZZcZZD@@L@,print_tbreak@@@@@@@@@@@@@@@@dZEZEdZEZj@@M@4pp_set_ellipsis_text@@@@@@@@@@@@@@@@u\\u\\@@N@1set_ellipsis_text@@@@@@@@@@ v\\ v\\@@O@4pp_get_ellipsis_text@ @@@@@@@@@@@@@@@"{]_]_#{]_]@@,P@1get_ellipsis_text@@@@@@@@@@5|]]6|]]@@?Q@$stag8@@AA@@@@@>^^?^^@@@@HRA@#tag8@@@A0@@@@@@@LmmMmm@@@@VSA@ *String_tag @@@@@@A&_none_@@A@fT@@,pp_open_stag@[@@@@@@@W@@@@@@@@snntnn@@}U@)open_stag@+@@@i@@@@@@nnnn@@V@-pp_close_stag@@@@@}@@@@@@@@@@@pppp/@@W@*close_stag@@@@@@@@@@p0p0p0pM@@X@+pp_set_tags@@@@@@@@@@@@@@@@qqqq@@Y@(set_tags@@@@@@@@@@qqqq@@Z@1pp_set_print_tags@@@@@@@@@@@@@@@@r.r.r.r_@@[@.set_print_tags@@@@@@@@@@r`r`r`r@@\@0pp_set_mark_tags@@@@@@@@@@@@@@@@rrrs@@(]@-set_mark_tags@@@@@@@@@@1ss2ss"@@;^@1pp_get_print_tags@0@@@@)@@@@@@@@@@@IspspJsps@@S_@.get_print_tags@<@@@*@@@@@@\ss]ss@@f`@0pp_get_mark_tags@[@@@@T@@@B@@@@@@@@tttutt2@@~a@-get_mark_tags@g@@@U@@@@@@t3t3t3tS@@b@set_formatter_output_functions@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@ @@!@@"@ vv wwK@@ )f@ !pp_get_formatter_output_functions@ @@@#@ @@@$@ @@@(@ ,@@@)@ 2@@@* 0@@@+@@,@@-@@.@ 7@@@% ;@@@&@@'@@/@@0@@1@ W"yy X#yz@@ ag@>get_formatter_output_functions@ J@@@2@S@@@6@ _@@@7@ e@@@8 c@@@9@@:@@;@@<@ j@@@3 n@@@4@@5@@=@@>@ $zz %z)zb@@ h@7formatter_out_functions8@@*out_stringu@@@@@K@ @@@L@ @@@M @@@N@@O@@P@@Q 3|=|? 3|=|i@@ j)out_flushv@@ @@@H @@@I@@J 4|j|l 4|j|@@ k+out_newlinew@@ @@@E @@@F@@G 5|| 5||@@ l*out_spacesx@@ @@@B @@@C@@D 6|| 6||@@ m*out_indenty@@ @@@? @@@@@@A 7|| 7||@@ n@@A@@@@@ 2|| 8||@@@@ iA@>pp_set_formatter_out_functions@ @@@R@}@@@S @@@T@@U@@V@ R S@@ o@;set_formatter_out_functions@@@@W @@@X@@Y@ $T %T/@@ .p@>pp_get_formatter_out_functions@ #@@@Z@ @@@[.@@@\@@]@@^@ ;doo <e@@ Eq@;get_formatter_out_functions@ .@@@_@@@@`@@a@ Mf Nf@@ Wr@8formatter_stag_functions8@@.mark_open_stag@@ @@@k H@@@l@@m dp-/ ep-O@@ nt/mark_close_stag@@@@@h Y@@@i@@j uqPR vqPs@@ u/print_open_stag@@,@@@e j@@@f@@g rtv rt@@ v0print_close_stag@@=@@@b {@@@c@@d s s@@ w@@A@@@@@ o   t@@@@ sA@?pp_set_formatter_stag_functions@ @@@n@[@@@o @@@p@@q@@r@ `` @@ x@@@@ B@@@@@@ ^ _@@ h@.make_formatter@@ S@@@@ _@@@@ e@@@ c@@@@@@@@@@@ k@@@ o@@@@@ @@@@@@@@ ii ~@@ @:formatter_of_out_functions@@@@ @@@@@@  )@@ @4symbolic_output_item8@@,Output_flush@@  @@ .Output_newline@@  @@ -Output_string @@@@@    3@@ -Output_spaces @@@@@  np  n@@ -Output_indent @@@@@    @@ @@A@@@@@ @@@@ A@6symbolic_output_buffer8@@@A@@@@@ dd d@@@@ A@;make_symbolic_output_buffer@ @@@@@@@@@   @@ @d@@ @/pp_print_either$left@ @@@@!a@  @@@@@@@%right@ @@@@!b@  @@@@@@@@ @@@@&Either!t)@@@  @@@ @@ @@@@@@@ y {0{@@ @'fprintf@ @@@@&format!a@ @@@ @@@@@@@@@@@  Y@@ @&printf@&format!a@ @@@ @@@@@@@@@@@@'eprintf @!&format!a@ @@@@@@@@@@@!@-XX.X@@7@'sprintf!@?&format!a@%*@@@# /@@@"@@@$@@&@LM@@V@(asprintf"@^'format4!a@+U@@@)M@@@( R@@@'@@@*@@,@op@@y@'dprintf#@'format4!a@3x@@@1p@@@0@@@@-z@@@.@@/@@@2@@4@ @@@(ifprintf$@@@@5@&format!a@9@@@7@@@6@@@8@@:@@;@¥¥¥@@@(kfprintf%@@@@@@'format4!b@C@@@A@@@@@@@B@@D@@E@@F@çç@@@(kdprintf&@@@@@@G@@@H@@I!a@K@@J@ 'format4!b@O@@@M@@@L@@@N@@P@@Q@ĐĐ @@#@)ikfprintf'@@@@@R!a@U@@S@#@@@T@;'format4!b@Y2@@@W*@@@V@@@X@@Z@@[@@\@H'ŐŐI)@@R@(ksprintf(@@=@@@]!a@_@@^@f'format4!b@cQ@@@aV@@@`@@@b@@d@@e@t0||u0|@@~@)kasprintf)@@i@@@f!a@h@@g@'format4!b@l@@@j@@@i@@@k@@m@@n@4++4+t@@@'bprintf*@&Buffer!t@@@o@&format!a@s@@@q@@@p@@@r@@t@@u@=>BX@0ocaml.deprecated>BG>BW@@>BD @@@'kprintf+@@@@@v!a@x@@w@'format4!b@|@@@z@@@y@@@{@@}@@~@HI!V@0ocaml.deprecatedI!&I!6@̄@0ocaml.deprecated[>A[>Q@ /Use Format.get_formatter_out_functions instead.[>S[>̂@@[>R[>̃@@@@@[>>@@@ %pp_set_all_formatter_output_functions.@@@@#out@@@@@@@@@@@@@@@@@@@@@%flush@@@@@@@@@'newline@@@@@@@@@&spaces@@@@@@@@@@@@@@@@@@@@@@@1^2avͿ@0ocaml.deprecated8avy9av͉@ 2Use Format.pp_set_formatter_out_functions instead.Cav͋Davͽ@@Fav͊Gav;@@@@@Iavv@@R@ %pp_get_all_formatter_output_functions/@G@@@@@@@@@I@@@@U@@@@[@@@Y@@@@@@@@@Ϡ@`@@@d@@@@@Ƞ@k@@@o@@@@@Š@|@@@z@@@@@@@@@@@@dhΚ@0ocaml.deprecatedhΚΝhΚέ@ 2Use Format.pp_get_formatter_out_functions instead.hΚίhΚ@@hΚήhΚ@@@@@hΚΚ@@@+pp_open_tag0@@@@@ e@@@@@@@@@@@m>>niϘ@0ocaml.deprecatednilni|@8Use Format.pp_open_stag.ni~niϖ@@ni}niϗ@@@@@nii@@@(open_tag1@ @@@@@@@@@qr@0ocaml.deprecatedrr@5Use Format.open_stag.rr@@rr@@@@@r@@@,pp_close_tag2@@@@@@@@@@@@@@@@u@@vmН@0ocaml.deprecated#vmp$vmЀ@9Use Format.pp_close_stag..vmЂ/vmЛ@@1vmЁ2vmМ@@@@@4vmm@@=@)close_tag3@&@@@*@@@@@@FyGz@0ocaml.deprecatedMzNz@6Use Format.close_stag.XzYz@@[z\z@@@@@^z@@g@7formatter_tag_functions48@@-mark_open_tag-@@ @@@X@@@@@t~kmu~kы@@~.mark_close_tag.@@ &@@@i@@@@@ьюьѭ@@.print_open_tag/@@ 7@@@z@@@@@ѮѰѮ@@/print_close_tag0@@ H@@@@@@@@@@@@A@@@@@}JJ%@0ocaml.deprecated@=Use formatter_stag_functions.#@@$@@@@@@@@@A@>pp_set_formatter_tag_functions5@@@@@r@@@@@@@@@@@cc?O@0ocaml.deprecatedҷҺҷ@ iThis function will erase non-string tag formatting functions. Use Format.pp_set_formatter_stag_functions.<@@=@@@@@ҷҷ>@'warning?B?I@"-3?K?M@@?J?N@@@@@ ??0@@@;set_formatter_tag_functions6@B@@@@@@@@@Xh@0ocaml.deprecated"#+@ (Use Format.set_formatter_stag_functions.--.U@@0,1V@@@@@34W@'warning:X[;Xb@"-3EXdFXf@@HXcIXg@@@@@KXX0@@T@>pp_get_formatter_tag_functions7@I@@@@B@@@@@@@@@@@aԪԪbAQ@0ocaml.deprecatedhi@ +Use Format.pp_get_formatter_stag_functions.st>@@vw?@@@@@yz@@'warningADAK@"-3AMAO@@ALAP@@@@@AA0@@@;get_formatter_tag_functions8@@@@@@@@@@ՖՖ(@0ocaml.deprecated@ (Use Format.get_formatter_stag_functions.@@@@@@@@'warning"@"-3$&@@#'@@@@@0@@@@#j.Stdlib__Format0{hXsHW#ȼ-Stdlib__Uchar0*Ujmyc6]]W+Stdlib__Seq05"g1<)b.Stdlib__Either0&]XF.Stdlib__Buffer0K ɦb+Z8)#KH"&Stdlib0yӶ~*8CamlinternalFormatBasics0cEXy"; Format.print_string "TEXT"; ] leads to output [<>PRETTYTEXT]. BlCg@@@@@@AV0 {1 Formatters} Qk<<Rk<Q@@@@@@PA()formatter A\mSX]mSa@@8@@@A@@@@@`mSS@)ocaml.docq Abstract data corresponding to a pretty-printer (also called a formatter) and all its machinery. See also {!section:formatter}. nnbboo@@@@@@@@@@@@A@@n@ ! {1:boxes Pretty-printing boxes} qq@@@@@@0~}}~~~~~@}+%@A j The pretty-printing engine uses the concepts of pretty-printing box and break hint to drive indentation and line splitting behavior of the pretty-printer. Each different pretty-printing box kind introduces a specific line splitting policy: - within an {e horizontal} box, break hints never split the line (but the line may be split in a box nested deeper), - within a {e vertical} box, break hints always split the line, - within an {e horizontal/vertical} box, if the box fits on the current line then break hints never split the line, otherwise break hint always split the line, - within a {e compacting} box, a break hint never splits the line, unless there is no more room on the current line. Note that line splitting policy is box specific: the policy of a box does not rule the policy of inner boxes. For instance, if a vertical box is nested in an horizontal box, all break hints within the vertical box will split the line. Moreover, opening a box after the {{!maxindent}maximum indentation limit} splits the line whether or not the box would end up fitting on the line. s@@@@@@+pp_open_box @б@гI)formatter@@ @@@)@@б@г^#int@@ @@@8@@г$unit@@ @@@E@@@@@H@@@%@@K( @@@@@A@@@Q(open_box @б@г#int@@ @@@0@jV@A@@гM$unit@@ @@@@@@@@@@@ @  [pp_open_box ppf d] opens a new compacting pretty-printing box with offset [d] in the formatter [ppf]. Within this box, the pretty-printer prints as much as possible material on every line. A break hint splits the line if there is no more room on the line to print the remainder of the box. Within this box, the pretty-printer emphasizes the box structure: if a structural box does not fit fully on a simple line, a break hint also splits the line if the splitting ``moves to the left'' (i.e. the new line gets an indentation smaller than the one of the current line). This box is the general purpose pretty-printing box. If the pretty-printer splits the line in the box, offset [d] is added to the current indentation.   @@@@@@@#B@@%,pp_close_box@б@гƠ)formatter"#@@ @@@0$##$$$$$@>S,@A@@б@г$unit34@@ @@@@@г$unit@A@@ @@@@@@@@!@@@'@@$* @@@N@@eC@@@*)close_boxYZ @б@г$unitde@@ @@@0feefffff@CX@A@@г̠$unitst@@ @@@@@@@@@@@~ @ 4 Closes the most recently open pretty-printing box. V@@@@@@@D@@%,pp_open_hboxX\Xh@б@гE)formatterXkXt@@ @@@0@>S,@A@@б@г $unitXxX|@@ @@@@@г$unitXX@@ @@@@@@@@!@@@'@@$* @@@XX@@E@@@*)open_hbox@б@г<$unit@@ @@@0@CX@A@@гK$unit@@ @@@@@@@@@@@ @ [pp_open_hbox ppf ()] opens a new 'horizontal' pretty-printing box. This box prints material on a single line. Break hints in a horizontal box never split the line. (Line splitting may still occur inside boxes nested deeper).   @@@@@@@!F@@%,pp_open_vbox@б@гĠ)formatter !@@ @@@0"!!"""""@>S,@A@@б@г۠#int12@@ @@@@@г$unit>?@@ @@@@@@@@!@@@'@@$* @@@L@@cG@@@*)open_vboxWX@б@г #intbc@@ @@@0dccddddd@CX@A@@гʠ$unitqr@@ @@@@@@@@@@@| @ 3 [pp_open_vbox ppf d] opens a new 'vertical' pretty-printing box with offset [d]. This box prints material on as many lines as break hints in the box. Every break hint in a vertical box splits the line. If the pretty-printer splits the line in the box, [d] is added to the current indentation.   @@@@@@@H@@%-pp_open_hvbox    '@б@гC)formatter  *  3@@ @@@0@>S,@A@@б@гZ#int  7  :@@ @@@@@г$unit  >  B@@ @@@@@@@@!@@@'@@$* @@@  @@I@@@**open_hvbox C G C Q@б@г#int C T C W@@ @@@0@CX@A@@гI$unit C [ C _@@ @@@@@@@@@@@ C C @ 0 [pp_open_hvbox ppf d] opens a new 'horizontal/vertical' pretty-printing box with offset [d]. This box behaves as an horizontal box if it fits on a single line, otherwise it behaves as a vertical box. If the pretty-printer splits the line in the box, [d] is added to the current indentation.  ` `!!@@@@@@@J@@%.pp_open_hovbox!!!!@б@г )formatter!!!!@@ @@@0      @>S,@A@@б@г٠#int/!!0!!@@ @@@@@г$unit<!!=!!@@ @@@@@@@@!@@@'@@$* @@@J!!@@aK@@@*+open_hovboxU!!V!!@б@г #int`!!a!!@@ @@@0baabbbbb@CX@A@@гȠ$unito!!p!!@@ @@@@@@@@@@@z!! @ m [pp_open_hovbox ppf d] opens a new 'horizontal-or-vertical' pretty-printing box with offset [d]. This box prints material as much as possible on every line. A break hint splits the line if there is no more room on the line to print the remainder of the box. If the pretty-printer splits the line in the box, [d] is added to the current indentation. !!#S#U@@@@@@@L@@%: {1 Formatting functions} #W#W#W#v@@@@@@0@5J#@A/pp_print_string#x#|#x#@б@гR)formatter#x##x#@@ @@@@@б@г&string#x##x#@@ @@@)@@г#$unit#x##x#@@ @@@6@@@@@9@@@%@@<( @@@#x#x@@M@@@B,print_string####@б@гK&string####@@ @@@0@[V@A@@гV$unit####@@ @@@@@@@@@@@## @ H [pp_print_string ppf s] prints [s] in the current pretty-printing box. ###$@@@@@@@,N@@%.pp_print_bytes $$!$$-@б@гϠ)formatter+$$0,$$9@@ @@@0-,,-----@>S,@A@@б@г %bytes<$$==$$B@@ @@@@@г$unitI$$FJ$$J@@ @@@@@@@@!@@@'@@$* @@@W$$@@nO@@@*+print_bytesb$K$Oc$K$Z@б@г;%bytesm$K$]n$K$b@@ @@@0onnooooo@CX@A@@гՠ$unit|$K$f}$K$j@@ @@@@@@@@@@@$K$K @' Y [pp_print_bytes ppf b] prints [b] in the current pretty-printing box. @since 4.13.0 $k$k$$@@@@@@@P@@%+pp_print_as$$$$@б@гN)formatter$$$$@@ @@@0@>S,@A@@б@гe#int$$$$@@ @@@@@б@г'&string$$$$@@ @@@ @@г0$unit$$$$@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@$$@@Q@@@<(print_as%%%% @б@г#int%%%%@@ @@@0@Uj@A@@б@гl&string%%%%@@ @@@@@гu$unit%% %%$@@ @@@@@@@@!@@@'@@$* @@@*%%@ʐ [pp_print_as ppf len s] prints [s] in the current pretty-printing box. The pretty-printer formats [s] as if it were of length [len]. 6%%%%7%%@@@@@@@NR@@7,pp_print_intB%%C%%@б@г)formatterM%%N%%@@ @@@0ONNOOOOO@Pe,@A@@б@г#int^%%_%%@@ @@@@@гĠ$unitk%%l%%@@ @@@@@@@@!@@@'@@$* @@@y%%@@S@@@*)print_int%%%%@б@г9#int%%%%@@ @@@0@CX@A@@г$unit%%%%@@ @@@@@@@@@@@%% @I 6 Print an integer in the current pretty-printing box. %%%&7@@@@@@@T@@%.pp_print_float &9&=&9&K@б@гp)formatter&9&N&9&W@@ @@@0@>S,@A@@б@г%float&9&[&9&`@@ @@@@@гC$unit&9&d&9&h@@ @@@@@@@@!@@@'@@$* @@@&9&9@@U@@@*+print_float!&i&m&i&x@б@г%float&i&{&i&@@ @@@0@CX@A@@гv$unit&i&&i&@@ @@@@@@@@@@@(&i&i @Ȑ C Print a floating point number in the current pretty-printing box. 4&&5&&@@@@@@@LV@@%-pp_print_char"@&&A&&@б@г)formatterK&&L&&@@ @@@0MLLMMMMM@>S,@A@@б@г$char\&&]&&@@ @@@@@г $uniti&&j&'@@ @@@@@@@@!@@@'@@$* @@@w&&@@W@@@**print_char#''''@б@гK$char''''@@ @@@0@CX@A@@г$unit''''@@ @@@@@@@@@@@'' @G 7 Print a character in the current pretty-printing box. ''''[@@@@@@@X@@%-pp_print_bool$']'a']'n@б@гn)formatter']'q']'z@@ @@@ 0@>S,@A@@б@г$bool']'~']'@@ @@@ @@гA$unit']'']'@@ @@@ @@@@@ !@@@'@@ $* @@@']']@@ Y@@@**print_bool%''''@б@г۠$bool '' ''@@ @@@0  @CX@A@@гt$unit''''@@ @@@@@@@@@@@&'' @Ɛ 5 Print a boolean in the current pretty-printing box. 2''3''@@@@@@@JZ@@%H8 {1:breaks Break hints} C''D'(@@@@@@0BAABBBBB@5J#@AY / A 'break hint' tells the pretty-printer to output some space or split the line whichever way is more appropriate to the current pretty-printing box splitting rules. Break hints are used to separate printing items and are mandatory to let the pretty-printer correctly split lines and indent items. Simple break hints are: - the 'space': output a space or split the line if appropriate, - the 'cut': split the line if appropriate. Note: the notions of space and line splitting are abstract for the pretty-printing engine, since those notions can be completely redefined by the programmer. However, in the pretty-printer default setting, ``output a space'' simply means printing a space character (ASCII code 32) and ``split the line'' means printing a newline character (ASCII code 10). T((U+6+8@@@@@@.pp_print_space&^+:+>_+:+L@б@г )formatteri+:+Oj+:+X@@ @@@)@@б@гѠ$unitx+:+\y+:+`@@ @@@8@@гޠ$unit+:+d+:+h@@ @@@E@@@@@H@@@%@@K( @@@+:+:@@[@@@Q+print_space'+i+m+i+x@б@г$unit+i+{+i+@@ @@@0@jV@A@@г$unit+i++i+@@ @@@@@@@@@@@+i+i @c [pp_print_space ppf ()] emits a 'space' break hint: the pretty-printer may split the line at this point, otherwise it prints one space. [pp_print_space ppf ()] is equivalent to [pp_print_break ppf 1 0]. ++,^,`@@@@@@@\@@%,pp_print_cut(,b,f,b,r@б@г)formatter,b,u,b,~@@ @@@0@>S,@A@@б@гP$unit,b,,b,@@ @@@@@г]$unit ,b, ,b,@@ @@@@@@@@!@@@'@@$* @@@ ,b,b@@ )]@@@*)print_cut) ,, ,,@б@г$unit (,, ),,@@ @@@0 * ) ) * * * * *@CX@A@@г$unit 7,, 8,,@@ @@@@@@@@ @@@ B,, @␠ [pp_print_cut ppf ()] emits a 'cut' break hint: the pretty-printer may split the line at this point, otherwise it prints nothing. [pp_print_cut ppf ()] is equivalent to [pp_print_break ppf 0 0].  N,, O!-z-|@@@@@@@ f^@@%.pp_print_break* Z#-~- [#-~-@б@г )formatter e#-~- f#-~-@@ @@@!0 g f f g g g g g@>S,@A@@б@г #int v#-~- w#-~-@@ @@@"@@б@г /#int #-~- #-~-@@ @@@# @@г렐$unit #-~- #-~-@@ @@@$-@@@@@%0@@@%@@&3( @@@9@@'6<@@@ #-~-~@@ _@@@<+print_break+ $-- $--@б@г c#int $-- $--@@ @@@(0        @Uj@A@@б@г t#int $-- $--@@ @@@)@@г 0$unit $-- $--@@ @@@*@@@@@+!@@@'@@,$* @@@ $--@ [pp_print_break ppf nspaces offset] emits a 'full' break hint: the pretty-printer may split the line at this point, otherwise it prints [nspaces] spaces. If the pretty-printer splits the line, [offset] is added to the current indentation.  %-- +..@@@@@@@ `@@75pp_print_custom_break, -.. -..@б@г)formatter ... ...@@ @@@-0        @Pe,@A@@б$fitsВг {&string ///  ///@@ @@@.@@г ֠#int ,/// -///@@ @@@/$@@г &string :/// ;/// @@ @@@02@@@# @@18( @@б&breaksВг &string T0/%// U0/%/5@@ @@@2L@@г #int b0/%/8 c0/%/;@@ @@@3Z@@г ͠&string p0/%/> q0/%/D@@ @@@4h@@@# @@5n( @@г ܠ$unit 1/I/K 1/I/O@@ @@@6{@@C@@7~ 0/%/' @@}O@@8 /// @@@@@9@@@ -..@ 6  [pp_print_custom_break ppf ~fits:(s1, n, s2) ~breaks:(s3, m, s4)] emits a custom break hint: the pretty-printer may split the line at this point. If it does not split the line, then the [s1] is emitted, then [n] spaces, then [s2]. If it splits the line, then it emits the [s3] string, then an indent (according to the box rules), then an offset of [m] spaces, then the [s4] string. While [n] and [m] are handled by [formatter_out_functions.out_indent], the strings will be handled by [formatter_out_functions.out_string]. This allows for a custom formatter that handles indentation distinctly, for example, outputs [
] tags or [ ] entities. The custom break is useful if you want to change which visible (non-whitespace) characters are printed in case of break or no break. For example, when printing a list [ [a; b; c] ], you might want to add a trailing semicolon when it is printed vertically: {[ [ a; b; c; ] ]} You can do this as follows: {[ printf "@[[@;<0 2>@[a;@,b;@,c@]%t]@]@\n" (pp_print_custom_break ~fits:("", 0, "") ~breaks:(";", 0, "")) ]} @since 4.08.0  2/P/P U33@@@@@@@ a@"@0pp_force_newline- W33 W33@б@г ])formatter W33 W34@@ @@@:0        @,@A@@б@г #$unit W34 W34 @@ @@@;@@г 0$unit W34  W34@@ @@@<@@@@@=!@@@'@@>$* @@@ W33@@ b@@@*-force_newline. X44 X44#@б@г T$unit X44& X44*@@ @@@?0        @CX@A@@г c$unit X44. X442@@ @@@@@@@@@A@@@ X44 @ N Force a new line in the current pretty-printing box. The pretty-printer must split the line at this point, Not the normal way of pretty-printing, since imperative line splitting may interfere with current line counters and box size calculation. Using break hints within an enclosing vertical box is a better alternative.  !Y4343 "a55@@@@@@@ 9c@@%3pp_print_if_newline/ -c55 .c55@б@г ܠ)formatter 8c55 9c55@@ @@@B0 : 9 9 : : : : :@>S,@A@@б@г $unit Ic55 Jc55@@ @@@C@@г $unit Vc55 Wc55@@ @@@D@@@@@E!@@@'@@F$* @@@ dc55@@ {d@@@*0print_if_newline0 od55 pd55@б@г Ӡ$unit zd55 {d55@@ @@@G0 | { { | | | | |@CX@A@@г ⠐$unit d55 d55@@ @@@H@@@@@I@@@ d55 @ 4 Execute the next formatting command if the preceding line has just been split. Otherwise, ignore the next formatting command.  e55 h6f6h@@@@@@@ e@@% ! {1 Pretty-printing termination}  j6j6j j6j6@@@@@@0        @5J#@A.pp_print_flush1 l66 l66@б@г l)formatter l66 l66@@ @@@J@@б@г 0$unit l66 l66@@ @@@K)@@г =$unit l66 l66@@ @@@L6@@@@@M9@@@%@@N<( @@@ l66@@ f@@@B+print_flush2 m66 m66@б@г a$unit m66 m66@@ @@@O0        @[V@A@@г p$unit m66 m66@@ @@@P@@@@@Q@@@ "m66 @  r End of pretty-printing: resets the pretty-printer to initial state. All open pretty-printing boxes are closed, all pending text is printed. In addition, the pretty-printer low level output device is flushed to ensure that all pending text is really displayed. Note: never use [print_flush] in the normal course of a pretty-printing routine, since the pretty-printer uses a complex buffering machinery to properly indent the output; manually flushing those buffers at random would conflict with the pretty-printer strategy and result to poor rendering. Only consider using [print_flush] when displaying all pending material is mandatory (for instance in case of interactive use when you want the user to read some text) and when resetting the pretty-printer state will not disturb further pretty-printing. Warning: If the output device of the pretty-printer is an output channel, repeated calls to [print_flush] means repeated calls to {!Stdlib.flush} to flush the out channel; these explicit flush calls could foil the buffering strategy of output channels and could dramatically impact efficiency.  .n66 /;U;W@@@@@@@ Fg@@%0pp_print_newline3 :;Y;] ;;Y;m@б@г 預)formatter E;Y;p F;Y;y@@ @@@R0 G F F G G G G G@>S,@A@@б@г $unit V;Y;} W;Y;@@ @@@S@@г $unit c;Y; d;Y;@@ @@@T@@@@@U!@@@'@@V$* @@@ q;Y;Y@@ h@@@*-print_newline4 |;; };;@б@г ࠐ$unit ;; ;;@@ @@@W0        @CX@A@@г $unit ;; ;;@@ @@@X@@@@@Y@@@ ;; @ A  End of pretty-printing: resets the pretty-printer to initial state. All open pretty-printing boxes are closed, all pending text is printed. Equivalent to {!print_flush} followed by a new line. See corresponding words of caution for {!print_flush}. Note: this is not the normal way to output a new line; the preferred method is using break hints within a vertical pretty-printing box.  ;; =>=@@@@@@@@ i@@% Ð, {1 Margin}  =B=B =B=S@@@@@@0        @5J#@A-pp_set_margin5 =U=Y =U=f@б@г y)formatter =U=i =U=r@@ @@@Z@@б@г #int =U=v =U=y@@ @@@[)@@г J$unit =U=} =U=@@ @@@\6@@@@@]9@@@%@@^<( @@@ =U=U@@ j@@@B*set_margin6 == ==@б@г #int == ==@@ @@@_0        @[V@A@@г }$unit $== %==@@ @@@`@@@@@a@@@ /== @ ϐ  [pp_set_margin ppf d] sets the right margin to [d] (in characters): the pretty-printer splits lines that overflow the right margin according to the break hints given. Setting the margin to [d] means that the formatting engine aims at printing at most [d-1] characters per line. Nothing happens if [d] is smaller than 2. If [d] is too large, the right margin is set to the maximum admissible value (which is greater than [10 ^ 9]). If [d] is less than the current maximum indentation limit, the maximum indentation limit is decreased while trying to preserve a minimal ratio [max_indent/margin>=50%] and if possible the current difference [margin - max_indent]. See also {!pp_set_geometry}.  ;== <@n@p@@@@@@@ Sk@@%-pp_get_margin7 G@r@v H@r@@б@г )formatter R@r@ S@r@@@ @@@b0 T S S T T T T T@>S,@A@@б@г $unit c@r@ d@r@@@ @@@c@@г #int p@r@ q@r@@@ @@@d@@@@@e!@@@'@@f$* @@@ ~@r@r@@ l@@@**get_margin8 @@ @@@б@г $unit @@ @@@@ @@@g0        @CX@A@@г M#int @@ @@@@ @@@h@@@@@i@@@ @@ @ N + Returns the position of the right margin.  @@ @@@@@@@@@ m@@% А ) {1:maxindent Maximum indentation limit}  @@ @A@@@@@@0        @5J#@A1pp_set_max_indent9 AA" AA3@б@г )formatter AA6 AA?@@ @@@j@@б@г #int AAC AAF@@ @@@k)@@г W$unit AAJ AAN@@ @@@l6@@@@@m9@@@%@@n<( @@@ AA@@#n@@@B.set_max_indent:AOASAOAa@б@г ̠#int"AOAd#AOAg@@ @@@o0$##$$$$$@[V@A@@г $unit1AOAk2AOAo@@ @@@p@@@@@q@@@<AOAO @ ܐ  [pp_set_max_indent ppf d] sets the maximum indentation limit of lines to [d] (in characters): once this limit is reached, new pretty-printing boxes are rejected to the left, unless the enclosing box fully fits on the current line. As an illustration, {[ set_margin 10; set_max_indent 5; printf "@[123456@[7@]89A@]@." ]} yields {[ 123456 789A ]} because the nested box ["@[7@]"] is opened after the maximum indentation limit ([7>5]) and its parent box does not fit on the current line. Either decreasing the length of the parent box to make it fit on a line: {[ printf "@[123456@[7@]89@]@." ]} or opening an intermediary box before the maximum indentation limit which fits on the current line {[ printf "@[123@[456@[7@]89@]A@]@." ]} avoids the rejection to the left of the inner boxes and print respectively ["123456789"] and ["123456789A"] . Note also that vertical boxes never fit on a line whereas horizontal boxes always fully fit on the current line. Opening a box may split a line whereas the contents may have fit. If this behavior is problematic, it can be curtailed by setting the maximum indentation limit to [margin - 1]. Note that setting the maximum indentation limit to [margin] is invalid. Nothing happens if [d] is smaller than 2. If [d] is too large, the limit is set to the maximum admissible value (which is greater than [10 ^ 9]). If [d] is greater or equal than the current margin, it is ignored, and the current maximum indentation limit is kept. See also {!pp_set_geometry}. HApApIGG@@@@@@@`o@@%1pp_get_max_indent;TGGUGG@б@г )formatter_GG`GG@@ @@@r0a``aaaaa@>S,@A@@б@г ɠ$unitpGGqGG@@ @@@s@@г'#int}GG~GG@@ @@@t@@@@@u!@@@'@@v$* @@@GG@@p@@@*.get_max_indent<GGGG@б@г $unitGGGG@@ @@@w0@CX@A@@гZ#intGGGG@@ @@@x@@@@@y@@@GG @ [ 7 Return the maximum indentation limit (in characters). GGGH%@@@@@@@q@@%ݐ {1 Geometry } Geometric functions can be used to manipulate simultaneously the coupled variables, margin and maxixum indentation limit. H'H'HH@@@@@@0@5J#@AA((geometry=BHHHH@@8@@*max_indent>@@@@zHHHH@@ s&margin?@@@@}HHHH@@t@@A@@@@@HHHH@@@@r@ HH@@Ш@г #intHHHH@@(0@<68@@@A@@@@@@@@@A@@.@D@{@*@&&!HH@@Ш@г)#int(HH*@@0+@@3@D@~@/@@A@+@@R+*@.check_geometry@5HH6HH@б@г[(geometry@HHAHI@@ @@@0BAABBBBB@lf`@A@@г$boolOHI PHI @@ @@@@@@@@@@@ZHH @ E Check if the formatter geometry is valid: [1 < max_indent < margin] fIIgIIX@@@@@@@~u@@%/pp_set_geometryArIZI^sIZIm@б@г!)formatter}IZIp~IZIy@@ @@@0~~@>S,@A@@б*max_indentг:#intIZIIZI@@ @@@@@б&marginгK#intIZIIZI@@ @@@$@@г$unitIZIIZI@@ @@@1@@@@4IZI @@3(@@8IZI} @@@?@@<B@@@IZIZ@@v@@@B,set_geometryBIIII@б*max_indentг#intIIII@@ @@@0@]r!@A@@б&marginг#intIIII@@ @@@@@гR$unitIIII@@ @@@ @@@@#II @@5*@@'II @@@ II@@ w@@@.4pp_safe_set_geometryCIIII@б@гà)formatterII II@@ @@@0!  !!!!!@G^@A@@б*max_indentгܠ#int2IJ 3IJ@@ @@@@@б&marginг#intCIJDIJ@@ @@@$@@г$unitPIJ"QIJ&@@ @@@1@@@@4YIJ @@3(@@8]IJ @@@?@@<B@@@cII@@zx@@@B1safe_set_geometryDnJ'J+oJ'J<@б*max_indentг%#int{J'JJ|J'JM@@ @@@0}||}}}}}@]r!@A@@б&marginг8#intJ'JXJ'J[@@ @@@@@г$unitJ'J_J'Jc@@ @@@ @@@@#J'JQ @@5*@@'J'J? @@@J'J'@K  [pp_set_geometry ppf ~max_indent ~margin] sets both the margin and maximum indentation limit for [ppf]. When [1 < max_indent < margin], [pp_set_geometry ppf ~max_indent ~margin] is equivalent to [pp_set_margin ppf margin; pp_set_max_indent ppf max_indent]; and avoids the subtly incorrect [pp_set_max_indent ppf max_indent; pp_set_margin ppf margin]; Outside of this domain, [pp_set_geometry] raises an invalid argument exception whereas [pp_safe_set_geometry] does nothing. @since 4.08.0 JdJdLuLw@@@@@@@y@@;2pp_update_geometryEMMMM@б@гr)formatterMMMM@@ @@@0@Tk,@A@@б@б@г(geometryMMMM@@ @@@@@г (geometryMMMM@@ @@@ @@@@@#@@гW$unitMMMM@@ @@@0@@@@@3MM @@@:@@7= @@@ MM@ 2 [pp_update_geometry ppf (fun geo -> { geo with ... })] lets you update a formatter's geometry in a way that is robust to extension of the [geometry] record with new fields. Raises an invalid argument exception if the returned geometry does not satisfy {!check_geometry}. @since 4.11.0 LyLyMM@@@@@@@1z@@J/update_geometryF%MM&MN @б@б@гM(geometry2MN 3MN@@ @@@043344444@ez.@A@@г\(geometryAMNBMN!@@ @@@@@@@@@@г$unitQMN&RMN*@@ @@@@@@@@"ZMN  @@@]MM @@t{@@@)/pp_get_geometryGhN,N0iN,N?@б@г)formattersN,NAtN,NJ@@ @@@0uttuuuuu@BY@A@@б@гݠ$unitN,NNN,NR@@ @@@@@г(geometryN,NVN,N^@@ @@@@@@@@!@@@'@@$* @@@N,N,@@|@@@*,get_geometryH N_Nc N_No@б@г$unit N_Nq N_Nu@@ @@@0@CX@A@@гߠ(geometry N_Ny N_N@@ @@@@@@@@@@@ N_N_ @o A Return the current geometry of the formatter @since 4.08.0  NN NN@@@@@@@}@@%񐠠> {1 Maximum formatting depth} NNNN@@@@@@0@5J#@A The maximum formatting depth is the maximum number of pretty-printing boxes simultaneously open. Material inside boxes nested deeper is printed as an ellipsis (more precisely as the text returned by {!get_ellipsis_text} [()]). NNOO@@@@@@0pp_set_max_boxesIOOOO@б@г)formatterOOOP@@ @@@)@@б@гˠ#int!OP"OP @@ @@@8@@г$unit.OP/OP@@ @@@E@@@@@H@@@%@@K( @@@<OO@@S~@@@Q-set_max_boxesJGPPHPP$@б@г#intRPP'SPP*@@ @@@0TSSTTTTT@jV@A@@г$unitaPP.bPP2@@ @@@@@@@@@@@lPP @  [pp_set_max_boxes ppf max] sets the maximum number of pretty-printing boxes simultaneously open. Material inside boxes nested deeper is printed as an ellipsis (more precisely as the text returned by {!get_ellipsis_text} [()]). Nothing happens if [max] is smaller than 2. xP3P3y#QRQT@@@@@@@@@%0pp_get_max_boxesK%QVQZ%QVQj@б@г3)formatter%QVQm%QVQv@@ @@@0@>S,@A@@б@г$unit%QVQz%QVQ~@@ @@@@@гW#int%QVQ%QVQ@@ @@@@@@@@!@@@'@@$* @@@%QVQV@@@@@@*-get_max_boxesL&QQ&QQ@б@г*$unit&QQ&QQ@@ @@@0@CX@A@@г#int&QQ&QQ@@ @@@@@@@@@@@&QQ @ P Returns the maximum number of pretty-printing boxes allowed before ellipsis. 'QQ)QQ@@@@@@@A@@%1pp_over_max_boxesM+QR+QR@б@г)formatter+QR+QR@@ @@@0@>S,@A@@б@гx$unit+QR" +QR&@@ @@@@@г$bool,+QR*-+QR.@@ @@@@@@@@!@@@'@@$* @@@:+QQ@@QB@@@*.over_max_boxesNE,R/R3F,R/RA@б@г$unitP,R/RDQ,R/RH@@ @@@0RQQRRRRR@CX@A@@г.$bool_,R/RL`,R/RP@@ @@@@@@@@@@@j,R/R/ @ Z Tests if the maximum number of pretty-printing boxes allowed have already been opened. v-RQRQw/RR@@@@@@@C@@%6 {1 Tabulation boxes} 1RR1RR@@@@@@0@5J#@A a A {e tabulation box} prints material on lines divided into cells of fixed length. A tabulation box provides a simple way to display vertical columns of left adjusted text. This box features command [set_tab] to define cell boundaries, and command [print_tab] to move from cell to cell and split the line when there is no more cells to print on the line. Note: printing within tabulation box is line directed, so arbitrary line splitting inside a tabulation box leads to poor rendering. Yet, controlled use of tabulation boxes allows simple printing of columns within module {!Format}. 3RRAU3U5@@@@@@,pp_open_tboxOCU7U;CU7UG@б@гQ)formatterCU7UJCU7US@@ @@@)@@б@г$unitCU7UWCU7U[@@ @@@8@@г"$unitCU7U_CU7Uc@@ @@@E@@@@@H@@@%@@K( @@@CU7U7@@D@@@Q)open_tboxPDUdUhDUdUq@б@гF$unitDUdUtDUdUx@@ @@@0@jV@A@@гU$unitDUdU|DUdU@@ @@@@@@@@@@@DUdUd @  [open_tbox ()] opens a new tabulation box. This box prints lines separated into cells of fixed width. Inside a tabulation box, special {e tabulation markers} defines points of interest on the line (for instance to delimit cell boundaries). Function {!Format.set_tab} sets a tabulation marker at insertion point. A tabulation box features specific {e tabulation breaks} to move to next tabulation marker or split the line. Function {!Format.print_tbreak} prints a tabulation break. EUUPWwWy@@@@@@@+E@@%-pp_close_tboxQRW{W RW{W@б@гΠ)formatter*RW{W+RW{W@@ @@@0,++,,,,,@>S,@A@@б@г$unit;RW{W<RW{W@@ @@@@@г$unitHRW{WIRW{W@@ @@@@@@@@!@@@'@@$* @@@VRW{W{@@mF@@@**close_tboxRaSWWbSWW@б@гŠ$unitlSWWmSWW@@ @@@0nmmnnnnn@CX@A@@гԠ$unit{SWW|SWW@@ @@@@@@@@@@@SWW @& 1 Closes the most recently opened tabulation box. TWWTWW@@@@@@@G@@%*pp_set_tabSVWXVWX @б@гM)formatterVWXVWX@@ @@@0@>S,@A@@б@г$unitVWXVWX!@@ @@@@@г $unitVWX%VWX)@@ @@@@@@@@!@@@'@@$* @@@VWW@@H@@@*'set_tabTWX*X.WX*X5@б@гD$unitWX*X8WX*X<@@ @@@0@CX@A@@гS$unitWX*X@WX*XD@@ @@@@@@@@@@@WX*X* @ 6 Sets a tabulation marker at current insertion point. XXEXEXXEX@@@@@@@)I@@%,pp_print_tabUZXXZXX@б@г̠)formatter(ZXX)ZXX@@ @@@0*))*****@>S,@A@@б@г$unit9ZXX:ZXX@@ @@@@@г$unitFZXXGZXX@@ @@@@@@@@!@@@'@@$* @@@TZXX@@kJ@@@*)print_tabV_[XX`[XX@б@гà$unitj[XXk[XX@@ @@@0lkklllll@CX@A@@гҠ$unity[XXz[XX@@ @@@@@@@@@@@[XX @$ < [print_tab ()] emits a 'next' tabulation break hint: if not already set on a tabulation marker, the insertion point moves to the first tabulation marker on the right, or the pretty-printer splits the line and insertion point moves to the leftmost tabulation marker. It is equivalent to [print_tbreak 0 0]. \XXaYZ @@@@@@@K@@%/pp_print_tbreakWcZZcZZ"@б@гK)formattercZZ%cZZ.@@ @@@0@>S,@A@@б@гb#intcZZ2cZZ5@@ @@@@@б@гq#intcZZ9cZZ<@@ @@@ @@г-$unitcZZ@cZZD@@ @@@-@@@@@0@@@%@@3( @@@9@@6<@@@cZZ@@L@@@<,print_tbreakXdZEZIdZEZU@б@г#intdZEZXdZEZ[@@ @@@0@Uj@A@@б@г#int dZEZ_ dZEZb@@ @@@@@гr$unitdZEZfdZEZj@@ @@@@@@@@!@@@'@@$* @@@'dZEZE@ǐ  [print_tbreak nspaces offset] emits a 'full' tabulation break hint. If not already set on a tabulation marker, the insertion point moves to the first tabulation marker on the right and the pretty-printer prints [nspaces] spaces. If there is no next tabulation marker on the right, the pretty-printer splits the line at this point, then insertion point moves to the leftmost tabulation marker of the box. If the pretty-printer splits the line, [offset] is added to the current indentation. 3eZkZk4q\k\m@@@@@@@KM@@7I. {1 Ellipsis} Ds\o\oEs\o\@@@@@@0CBBCCCCC@G\#@A4pp_set_ellipsis_textYPu\\Qu\\@б@г)formatter[u\\\u\\@@ @@@@@б@гǠ&stringju\\ku\\@@ @@@)@@гР$unitwu\\xu\\@@ @@@6@@@@@9@@@%@@<( @@@u\\@@N@@@B1set_ellipsis_textZv\\v\\@б@г&stringv\\v\\@@ @@@0@[V@A@@г$unitv\\v\\@@ @@@@@@@@@@@v\\ @U v Set the text of the ellipsis printed when too many pretty-printing boxes are open (a single dot, [.], by default). w\\y][]]@@@@@@@O@@%4pp_get_ellipsis_text[{]_]c{]_]w@б@г|)formatter{]_]z{]_]@@ @@@0@>S,@A@@б@гB$unit{]_]{]_]@@ @@@@@гS&string{]_]{]_]@@ @@@@@@@@!@@@'@@ $* @@@{]_]_@@P@@@*1get_ellipsis_text\|]]|]]@б@гs$unit|]]|]]@@ @@@ 0@CX@A@@г&string)|]]*|]]@@ @@@ @@@@@ @@@4|]] @Ԑ " Return the text of the ellipsis. @}]]A}]]@@@@@@@XQ@@%V8 {1:tags Semantic tags} Q]]R]^@@@@@@0POOPPPPP@5J#@AA($stag]C^^^ _^^@@8@@AA@@@@@b^^c^^@ j {i Semantic tags} (or simply {e tags}) are user's defined annotations to associate user's specific operations to printed entities. Common usage of semantic tags is text decoration to get specific font or text size rendering for a display device, or marking delimitation of entities (e.g. HTML or TeX elements or terminal escape sequences). More sophisticated usage of semantic tags could handle dynamic modification of the pretty-printer behavior to properly print the material within some specific tags. For instance, we can define an RGB tag like so: {[ type stag += RGB of {r:int;g:int;b:int} ]} In order to properly delimit printed entities, a semantic tag must be opened before and closed after the entity. Semantic tags must be properly nested like parentheses using {!pp_open_stag} and {!pp_close_stag}. Tag specific operations occur any time a tag is opened or closed, At each occurrence, two kinds of operations are performed {e tag-marking} and {e tag-printing}: - The tag-marking operation is the simpler tag specific operation: it simply writes a tag specific string into the output device of the formatter. Tag-marking does not interfere with line-splitting computation. - The tag-printing operation is the more involved tag specific operation: it can print arbitrary material to the formatter. Tag-printing is tightly linked to the current pretty-printer operations. Roughly speaking, tag-marking is commonly used to get a better rendering of texts in the rendering device, while tag-printing allows fine tuning of printing routines to print the same entity differently according to the semantic tags (i.e. print additional material or even omit parts of the output). More precisely: when a semantic tag is opened or closed then both and successive 'tag-printing' and 'tag-marking' operations occur: - Tag-printing a semantic tag means calling the formatter specific function [print_open_stag] (resp. [print_close_stag]) with the name of the tag as argument: that tag-printing function can then print any regular material to the formatter (so that this material is enqueued as usual in the formatter queue for further line splitting computation). - Tag-marking a semantic tag means calling the formatter specific function [mark_open_stag] (resp. [mark_close_stag]) with the name of the tag as argument: that tag-marking function can then return the 'tag-opening marker' (resp. `tag-closing marker') for direct output into the output device of the formatter. Being written directly into the output device of the formatter, semantic tag marker strings are not considered as part of the printing material that drives line splitting (in other words, the length of the strings corresponding to tag markers is considered as zero for line splitting). Thus, semantic tag handling is in some sense transparent to pretty-printing and does not interfere with usual indentation. Hence, a single pretty-printing routine can output both simple 'verbatim' material or richer decorated output depending on the treatment of tags. By default, tags are not active, hence the output is not decorated with tag information. Once [set_tags] is set to [true], the pretty-printer engine honors tags and decorates the output accordingly. Default tag-marking functions behave the HTML way: {{!tag}string tags} are enclosed in "<" and ">" while other tags are ignored; hence, opening marker for tag string ["t"] is [""] and closing marker is [""]. Default tag-printing functions just do nothing. Tag-marking and tag-printing functions are user definable and can be set by calling {!set_formatter_stag_functions}. Semantic tag operations may be set on or off with {!set_tags}. Tag-marking operations may be set on or off with {!set_mark_tags}. Tag-printing operations may be set on or off with {!set_print_tags}. @since 4.08.0 o^^pmm@@@@@@@@@R@AA@@@A(#tag^D|mm}mm@@8@@@A@@@@@@@mmmm@@@@S@@Aг &stringmm @@0@?938@@@A"@@E@E@ @@@@@@@@A @@@@0@ @A@I$stagmmmm@@*String_tag_Emmmm@ @?@@@@@A mm@Y [String_tag s] is a string tag [s]. String tags can be inserted either by explicitly using the constructor [String_tag] or by using the dedicated format syntax ["@{ ... @}"]. @since 4.08.0 mmnn@@@@@@@T@г#tagmm@@0@B\V@A@@@@@A@mm@,pp_open_stag`nnnn@б@г)formatternnnn@@ @@@0@F@@A@@б@г$stagnnnn@@ @@@@@гa$unitnn nn@@ @@@@@@@@!@@@'@@$* @@@nn@@-U@@@*)open_staga!nn"nn@б@гΠ$stag,nn-nn@@ @@@0.--.....@CX@A@@г$unit;nn<nn@@ @@@@@@@@ @@@Fnn @搠 & [pp_open_stag ppf t] opens the semantic tag named [t]. The [print_open_stag] tag-printing function of the formatter is called with [t] as argument; then the opening tag marker for [t], as given by [mark_open_stag t], is written into the output device of the formatter. @since 4.08.0 RnnSop@@@@@@@jV@@%-pp_close_stagb^pp_pp@б@г )formatterippjpp@@ @@@!0kjjkkkkk@>S,@A@@б@гӠ$unitzpp#{pp'@@ @@@"@@гࠐ$unitpp+pp/@@ @@@#@@@@@$!@@@'@@%$* @@@pp@@W@@@**close_stagcp0p4p0p>@б@г$unitp0pAp0pE@@ @@@&0@CX@A@@г$unitp0pIp0pM@@ @@@'@@@@@(@@@p0p0 @e 2 [pp_close_stag ppf ()] closes the most recently opened semantic tag [t]. The closing tag marker, as given by [mark_close_stag t], is written into the output device of the formatter; then the [print_close_stag] tag-printing function of the formatter is called with [t] as argument. @since 4.08.0 pNpNqq@@@@@@@X@@%+pp_set_tagsdqqqq@б@г)formatterqqqq@@ @@@)0@>S,@A@@б@гȠ$boolqqqq@@ @@@*@@г_$unitqqqq@@ @@@+@@@@@,!@@@'@@-$* @@@qq@@+Y@@@*(set_tagseqq qq@б@г$bool*qq+qq@@ @@@.0,++,,,,,@CX@A@@г$unit9qq:qq@@ @@@/@@@@@0@@@Dqq @䐠 X [pp_set_tags ppf b] turns on or off the treatment of semantic tags (default is off). PqqQr*r,@@@@@@@hZ@@%1pp_set_print_tagsf\r.r2]r.rC@б@г )formattergr.rFhr.rO@@ @@@10ihhiiiii@>S,@A@@б@гG$boolxr.rSyr.rW@@ @@@2@@гޠ$unitr.r[r.r_@@ @@@3@@@@@4!@@@'@@5$* @@@r.r.@@[@@@*.set_print_tagsgr`rdr`rr@б@гx$boolr`rur`ry@@ @@@60@CX@A@@г$unitr`r}r`r@@ @@@7@@@@@8@@@r`r` @c H [pp_set_print_tags ppf b] turns on or off the tag-printing operations. rrrr@@@@@@@\@@%0pp_set_mark_tagshrrrr@б@г)formatterrrrr@@ @@@90@>S,@A@@б@гƠ$boolrrrr@@ @@@:@@г]$unitrrrs@@ @@@;@@@@@<!@@@'@@=$* @@@rr@@)]@@@*-set_mark_tagsissss@б@г$bool(ss)ss@@ @@@>0*))*****@CX@A@@г$unit7ss8ss"@@ @@@?@@@@@@@@@Bss @␠ F [pp_set_mark_tags ppf b] turns on or off the tag-marking operations. Ns#s#Os#sn@@@@@@@f^@@%1pp_get_print_tagsjZspst[sps@б@г )formatterespsfsps@@ @@@A0gffggggg@>S,@A@@б@гϠ$unitvspswsps@@ @@@B@@гR$boolspssps@@ @@@C@@@@@D!@@@'@@E$* @@@spsp@@_@@@*.get_print_tagskssss@б@г$unitssss@@ @@@F0@CX@A@@г$boolssss@@ @@@G@@@@@H@@@ss @a 7 Return the current status of tag-printing operations. ssst@@@@@@@`@@%0pp_get_mark_tagsltttt@б@г)formattertttt"@@ @@@I0@>S,@A@@б@гN$unittt&tt*@@ @@@J@@гѠ$booltt.tt2@@ @@@K@@@@@L!@@@'@@M$* @@@tt@@'a@@@*-get_mark_tagsmt3t7t3tD@б@г$unit&t3tG't3tK@@ @@@N0(''(((((@CX@A@@г$bool5t3tO6t3tS@@ @@@O@@@@@P@@@@t3t3 @ 6 Return the current status of tag-marking operations. LtTtTMtTt@@@@@@@db@@%S,@A@@б@г>+out_channel&Stdlibwttxtu @@ @@@R@@гݠ$unittutu@@ @@@S!@@@@@T$@@@*@@U'- @@@tt@2 / {1 Redirecting the standard formatter output} tttt@@@@@@@c@@:9set_formatter_out_channelouuuu0@б@г+out_channel&Stdlibuu3uuE@@ @@@V0@Vk/@A@@г $unituuIuuM@@ @@@W@@@@@X@@@uu @r ' Redirect the standard pretty-printer output to the given channel. (All the output functions of the standard formatter are set to the default output functions printing to the given channel.) [set_formatter_out_channel] is equivalent to {!pp_set_formatter_out_channel} [std_formatter]. uNuNvxvz@@@@@@@d@@% !pp_set_formatter_output_functionspv|vv|v@б@г)formattervvvv@@ @@@Y0@>V,@A@@б@б@гe&stringvv vv@@ @@@Z@@б@г#intvvvv@@ @@@["@@б@гР#int&vv'vv@@ @@@\1@@г$unit3vv4vv@@ @@@]>@@@@@^A@@@%@@_D( @@@7@@`G:@@б@б@г$unitMvvNvv@@ @@@aX@@г$unitZvv[vv@@ @@@be@@@@@ch@@гà$unitjvvkvv@@ @@@du@@@@@exsvv @@@7@@f|wvv @@@@@g@@@}v|v|@@e@@@>set_formatter_output_functionsqvvvw@б@б@г&stringwwww@@ @@@h0@!@A@@б@гP#intwwww!@@ @@@i@@б@г_#intww%ww(@@ @@@j @@г$unitww,ww0@@ @@@k-@@@@@l0@@@%@@m3( @@@9@@n6<@@б@б@г5$unitww6ww:@@ @@@oG@@гB$unitww>wwB@@ @@@pT@@@@@qW@@гR$unitwwGwwK@@ @@@rd@@@@@sgww5 @@@7@@tkww @@@ vv@ B [pp_set_formatter_output_functions ppf out flush] redirects the standard pretty-printer output functions to the functions [out] and [flush]. The [out] function performs all the pretty-printer string output. It is called with a string [s], a start position [p], and a number of characters [n]; it is supposed to output characters [p] to [p + n - 1] of [s]. The [flush] function is called whenever the pretty-printer is flushed (via conversion [%!], or pretty-printing indications [@?] or [@.], or using low level functions [print_flush] or [print_newline]). wLwL yy@@@@@@@-f@@ !pp_get_formatter_output_functionsr!"yy""yy@б@гР)formatter,#yy-#yy@@ @@@u0.--.....@,@A@@б@г$unit=#yy>#yy@@ @@@v@@Вб@г&stringO#yyP#yy@@ @@@w#@@б@г#int^#yy_#yy@@ @@@x2@@б@г#intm#yyn#yy@@ @@@yA@@гӠ$unitz#yy{#yy@@ @@@zN@@@@@{Q@@@%@@|T( @@@7@@}W:@@б@г점$unit#yy#yy@@ @@@~g@@г$unit#yy#yz@@ @@@t@@@@@w@@@&@@|#yy#yz@@@s @@v@@@@@@@@"yy @@g@ @@>get_formatter_output_functionss$zz$zz&@б@г'$unit%z)z+%z)z/@@ @@@0@@A@@Вб@г?&string%z)z4%z)z:@@ @@@@@б@г#int%z)z>%z)zA@@ @@@#@@б@г#int%z)zE%z)zH@@ @@@2@@гf$unit %z)zL%z)zP@@ @@@?@@@@@B@@@%@@E( @@@7@@H:@@б@г$unit&%z)zU'%z)zY@@ @@@X@@г$unit3%z)z]4%z)za@@ @@@e@@@@@h@@@&@@mA%z)z3B%z)zb@@@u @@rx@@@H$zz@萠 E Return the current output functions of the standard pretty-printer. T&zczcU&zcz@@@@@@@lh@@j ) {1:meaning Redefining formatter output} e(zzf(zz@@@@@@0dccddddd@#@A{  The [Format] module is versatile enough to let you completely redefine the meaning of pretty-printing output: you may provide your own functions to define how to handle indentation, line splitting, and even printing of all the characters that have to be printed! v*zzw.{{@@@@@@ ! {2 Redefining output functions} 0{{0{|@@@@@@ A(7formatter_out_functionstF2||!2||8@@8@@*out_stringu@@@@@@Q@@@@W@@@ @@@@@@@@@3|=|?3|=|i@@j)out_flushv@@@@@@@@@@4|j|l4|j|@@k+out_newlinew@@*@@@.@@@@@5||5||@@l*out_spacesx@@@@@@@@@@@6||6||@@m*out_indenty@@@@@R@@@@@7||7||@/ @since 4.06.0  7||@@@@@@@n@@A@@@@@2||8||@  The set of output functions specific to a formatter: - the [out_string] function performs all the pretty-printer string output. It is called with a string [s], a start position [p], and a number of characters [n]; it is supposed to output characters [p] to [p + n - 1] of [s]. - the [out_flush] function flushes the pretty-printer output device. - [out_newline] is called to open a new line when the pretty-printer splits the line. - the [out_spaces] function outputs spaces when a break hint leads to spaces instead of a line split. It is called with the number of spaces to output. - the [out_indent] function performs new line indentation when the pretty-printer splits the line. It is called with the indentation value of the new line. By default: - fields [out_string] and [out_flush] are output device specific; (e.g. {!Stdlib.output_string} and {!Stdlib.flush} for a {!Stdlib.out_channel} device, or [Buffer.add_substring] and {!Stdlib.ignore} for a [Buffer.t] output device), - field [out_newline] is equivalent to [out_string "\n" 0 1]; - fields [out_spaces] and [out_indent] are equivalent to [out_string (String.make n ' ') 0 n]. @since 4.01.0 9||P@@@@@@@@@,i@m3|=|I@@Ш@б@г&string'3|=|L(3|=|R@@0&%%&&&&&@8@@@A@@@@@&#@@@A@@б@г#int53|=|V63|=|Y@@@@б@г#int@3|=|]A3|=|`@@@@г$unitI3|=|dJ3|=|h@@"@@# @@$@@%(@@@H@(@@U4|j|u@@Ш@б@г$unit`4|j|xa4|j||@@9@@г$uniti4|j|j4|j|@@B@@C @@@H@F@@s5||@@Ш@б@г$unit~5||5||@@W@@г$unit5||5||@@`@@a @@@H@d@@6||@@Ш@б@г#int6||6||@@u@@г$unit6||6||@@~@@ @@@H@@@àð7||@@Ш@б@гƠ#int7||7||@@@@гˠ$unit7||7||@@@@ @@@H@@@A@@b@>pp_set_formatter_out_functionszRR@б@г)formatterSS@@ @@@0@|XR@A@@б@г^7formatter_out_functionsSS@@ @@@@@гT$unitSS@@ @@@@@@@@!@@@'@@$* @@@ R@@ o@@@*;set_formatter_out_functions{ T T @б@г7formatter_out_functions T T'@@ @@@0 !   ! ! ! ! !@CX@A@@г$unit .T+ /T/@@ @@@@@@@@@@@ 9T @ِ 8 [pp_set_formatter_out_functions ppf out_funs] Set all the pretty-printer output functions of [ppf] to those of argument [out_funs], This way, you can change the meaning of indentation (which can be something else than just printing space characters) and the meaning of new lines opening (which can be connected to any other action needed by the application at hand). Reasonable defaults for functions [out_spaces] and [out_newline] are respectively [out_funs.out_string (String.make n ' ') 0 n] and [out_funs.out_string "\n" 0 1]. @since 4.01.0  EU00 Fbkm@@@@@@@ ]p@@%>pp_get_formatter_out_functions| Qdos Rdo@б@г)formatter \e ]e@@ @@@0 ^ ] ] ^ ^ ^ ^ ^@>S,@A@@б@гƠ$unit me ne@@ @@@@@гꠐ7formatter_out_functions ze {e@@ @@@@@@@@!@@@'@@$* @@@ doo@@ q@@@*;get_formatter_out_functions} f f@б@г$unit f f@@ @@@0        @CX@A@@г7formatter_out_functions f f@@ @@@@@@@@@@@ f @X Return the current output functions of the pretty-printer, including line splitting and indentation functions. Useful to record the current setting and restore it afterwards. @since 4.01.0  g k@@@@@@@ r@@% ڐ 4 {1:tagsmeaning Redefining semantic tag operations}  m m @@@@@@0        @5J#@AA(8formatter_stag_functions~G o  o (@@8@@.mark_open_stag@@ @@@ T@@@@@ p-/ p-O@@! t/mark_close_stag@@ @@@ f@@@@@!qPR!qPs@@!u/print_open_stag@@ @@@ t@@@@@!rtv!rt@@!1v0print_close_stag@@ @@@ @@@@@!+s!,s@@!Cw@@A@@@@@!/o  !0t@А  The semantic tag handling functions specific to a formatter: [mark] versions are the 'tag-marking' functions that associate a string marker to a tag in order for the pretty-printing engine to write those markers as 0 length tokens in the output device of the formatter. [print] versions are the 'tag-printing' functions that can perform regular printing when a tag is closed or opened. @since 4.08.0 !<u!=}\^@@@@@@@@@!Ts@ZZO!Dp-=@@Ш@б@г]$stag!Op-@!Pp-D@@e0!N!M!M!N!N!N!N!N@{u8@@@A@@@@@&#@@@A@@гe&string![p-H!\p-N@@m @@t @@w@I@@m@ii^!eqPa@@Ш@б@гl$stag!pqPd!qqPh@@t!@@гq&string!yqPl!zqPr@@y*@@+ @@@I@.@y@uuj!rt@@Ш@б@гx$stag!rt!rt@@?@@г}$unit!rt!rt@@H@@I @@@I@L@@v!s@@Ш@б@г$stag!s!s@@]@@г$unit!s!s@@f@@g @@@I@j@@@A@@@?pp_set_formatter_stag_functions!`d!`@б@г s)formatter!!@@ @@@0!!!!!!!!@@A@@б@г8formatter_stag_functions!!@@ @@@@@г!F$unit!!@@ @@@@@@@@!@@@'@@$* @@@!``@@"x@@@*S,@A@@б@г!$unit"_kz"`k~@@ @@@@@г8formatter_stag_functions"lk"mk@@ @@@@@@@@!@@@'@@$* @@@"zEE@@"z@@@* Stdlib.flush oc) ]} returns a formatter to the {!Stdlib.out_channel} [oc]. $$@@@@@@@$@@:formatter_of_out_functions$$@б@гN7formatter_out_functions$$@@ @@@ 0$$$$$$$$@,@A@@г#)formatter$ $)@@ @@@ @@@@@ @@@$ @# [formatter_of_out_functions out_funs] returns a new formatter that writes with the set of output functions [out_funs]. See definition of type {!formatter_out_functions} for the meaning of argument [out_funs]. @since 4.06.0 %**%@@@@@@@%@@%% ' {2:symbolic Symbolic pretty-printing} %%G@@@@@@0%%%%%%%%@5J#@A%+ J Symbolic pretty-printing is pretty-printing using a symbolic formatter, i.e. a formatter that outputs symbolic pretty-printing items. When using a symbolic formatter, all regular pretty-printing activities occur but output material is symbolic and stored in a buffer of output items. At the end of pretty-printing, flushing the output buffer allows post-processing of symbolic output before performing low level output operations. In practice, first define a symbolic output buffer [b] using: - [let sob = make_symbolic_output_buffer ()]. Then define a symbolic formatter with: - [let ppf = formatter_of_symbolic_output_buffer sob] Use symbolic formatter [ppf] as usual, and retrieve symbolic items at end of pretty-printing by flushing symbolic output buffer [sob] with: - [flush_symbolic_output_buffer sob]. %&II%'@@@@@@A(4symbolic_output_itemH%1%2@@8@@,Output_flush@@%;%<@#ܐ8 symbolic flush command %H%I@@@@@@@%`.Output_newline@@%Q%R@#򐠠: symbolic newline command %^%_@@@@@@@%v-Output_string$@@@ @@%l %m 3@$ 2 [Output_string s]: symbolic output for string [s]%y 46%z 4m@@@@@@@%-Output_spaces%3@@@ @@% np% n@$( : [Output_spaces n]: symbolic command to output [n] spaces % % @@@@@@@%-Output_indent%N@@@ @@% % @$C 5 [Output_indent i]: symbolic indentation of size [i] %%@@@@@@@%@@A@@@@@%@$S > Items produced by symbolic pretty-printers @since 4.06.0 %%`b@@@@@@@@@%@%@@@@~~%|@@@@|nn% % )@@гp&string% -q@@w0%%%%%%%%@8@@@A@@@@@/-@@ @Au@@@@wtff% nr% n@@гh#int% ni@@oj@@@@li[[% % @@г]#int& ^@@d#_@@@@a^@A@PN@P`@A(6symbolic_output_bufferI& di& d@@8@@@A@@@@@&dd@$ D The output buffer of a symbolic pretty-printer. @since 4.06.0 &&@@@@@@@@@&4@@A@@0&&&&&&&&@ @A@;make_symbolic_output_buffer&*&+@б@г%$unit&5&6@@ @@@ 0&7&6&6&7&7&7&7&7@4.@A@@г86symbolic_output_buffer&D&E @@ @@@ @@@@@ @@@&O @$ a [make_symbolic_output_buffer ()] returns a fresh buffer for symbolic output. @since 4.06.0 &[  &\pr@@@@@@@&s@@%S,@A@@г%ڠ$unit&!t&!t@@ @@@ @@@@@ @@@&!tt @%, J [clear_symbolic_output_buffer sob] resets buffer [sob]. @since 4.06.0 &"&%@@@@@@@&@@%:get_symbolic_output_buffer &' &'%@б@г6symbolic_output_buffer&((*&((@@@ @@@ 0&&&&&&&&@>S,@A@@г&S$list&((Y&((]@г4symbolic_output_item&((D&((X@@ @@@ @@@@@@  @@@$@@ !'@@@&'@%x Y [get_symbolic_output_buffer sob] returns the contents of buffer [sob]. @since 4.06.0 &)^^&,@@@@@@@&@)@4@@@@@@@'@@7 #formatter_of_symbolic_output_bufferŠ'@'@@б@г6symbolic_output_buffer'@'@@@ @@@ 0''''''''@Pe,@A@@г&I)formatter'@'@(@@ @@@ @@@@@ @@@'@ @&P [formatter_of_symbolic_output_buffer sob] returns a symbolic formatter that outputs to [symbolic_output_buffer] [sob]. @since 4.06.0 'A))'E@@@@@@@'@@%'Ґ ' {1 Convenience formatting functions.} 'G'G@@@@@@0''''''''@5J#@A-pp_print_listƠ'I'I@б&pp_sepб@г&)formatter'J'J@@ @@@ @@б@г'P$unit'J'J@@ @@@ -@@г']$unit(J(J @@ @@@ :@@@@@ =@@@%@@ @( @@б@б@г&)formatter(K%((K%1@@ @@@ Q@@б@А!a@ J@ \(,K%5(-K%7@@г'$unit(5K%;(6K%?@@ @@@ k@@@@@ n@@@#@@ q& @@б@г&)formatter(JK%E(KK%N@@ @@@ @@б@г'$list(YK%U(ZK%Y@А!a9(`K%R(aK%T@@@?@@@  @@г'Ǡ$unit(nK%](oK%a@@ @@@ @@@@@ @@@-@@ 0 @@@>@@ (}K%'(~K%b@@'x@@@  @@ (J @@ @(I @'* [pp_print_list ?pp_sep pp_v ppf l] prints items of list [l], using [pp_v] to print each item, and calling [pp_sep] between items ([pp_sep] defaults to {!pp_print_cut}. Does nothing on empty lists. @since 4.02.0 (Lcc(RCE@@@@@@@(@@,pp_print_seq(TGK(TGW@б&pp_sepб@г'U)formatter(UYd(UYm@@ @@@ 0((((((((@0@A@@б@г($unit(UYq(UYu@@ @@@ !@@г(($unit(UYy(UY}@@ @@@ "@@@@@ #!@@@'@@ $$* @@б@б@г')formatter(V(V@@ @@@ %5@@б@А!a@ J@ &@(V(V@@г(Y$unit)V)V@@ @@@ 'O@@@@@ (R@@@#@@ )U& @@б@г')formatter)V)V@@ @@@ *d@@б@г'#Seq!t)'V)(V@А!a<w).V)/V@@@B@@@ ~ @@г($unit)<V)=V@@ @@@ @@@@@ @@@0@@ 3 @@@A@@ )KV)LV@@Πz@@@  @@ )TUY[ @@ @)WTGG @'  [pp_print_seq ?pp_sep pp_v ppf s] prints items of sequence [s], using [pp_v] to print each item, and calling [pp_sep] between items ([pp_sep] defaults to {!pp_print_cut}. Does nothing on empty sequences. This function does not terminate on infinite sequences. @since 4.12 )cW)d_@@@@@@@){@@-pp_print_text)oa)pa@б@г()formatter)za){a@@ @@@ !0)|){){)|)|)|)|)|@,@A@@б@г(蠐&string)a)a @@ @@@ "@@г($unit)a)a@@ @@@ #@@@@@ $!@@@'@@ %$* @@@)a@(F [pp_print_text ppf s] prints [s] with spaces and newlines respectively printed using {!pp_print_space} and {!pp_force_newline}. @since 4.02.0 )b)f@@@@@@@)@@7/pp_print_option)h)h@б$noneб@г(q)formatter)i)i@@ @@@ &0))))))))@Ti0@A@@б@г)7$unit)i)i@@ @@@ '@@г)D$unit)i)i@@ @@@ (@@@@@ )!@@@'@@ *$* @@б@б@г()formatter*j*j@@ @@@ +5@@б@А!a@ :J@ ,@*j*j@@г)u$unit*j*j@@ @@@ -O@@@@@ .R@@@#@@ /U& @@б@г(ՠ)formatter*1j *2j@@ @@@ 0d@@б@г)&option*@j*Aj#@А!a9t*Gj*Hj@@@?@@@ 2{ @@г)$unit*Uj'*Vj+@@ @@@ 3@@@@@ 4@@@-@@ 50 @@@>@@ 6*dj*ej,@@w@@@ 7 @@ 8*mi @@ @*ph @) [pp_print_option ?none pp_v ppf o] prints [o] on [ppf] using [pp_v] if [o] is [Some v] and [none] if it is [None]. [none] prints nothing by default. @since 4.08 *|k--*}o@@@@@@@*@@/pp_print_result*q*q@б"okб@г);)formatter*r*r@@ @@@ ;0********@0@A@@б@А!a@ OJ@ < *r *r@@г* $unit*r*r@@ @@@ =@@@@@ >@@@%@@ ?"( @@б%errorб@г)p)formatter*r"*r+@@ @@@ @5@@б@А!e@ QJ@ A@*r/*r1@@г*?$unit*r5*r9@@ @@@ BO@@@@@ CR@@@#@@ DU& @@б@г))formatter*s>@*s>I@@ @@@ Ed@@б@г)&result+ s>V+ s>\@А!alt+s>N+s>P@@А!e@{+s>R+s>T@@@yG@@@ H+ s>M@@г*$unit+(s>`+)s>d@@ @@@ I@@@@@ J@@@6@@ K9 @@uG@@ L+7r@@~@@ M+;r@@@+>q@)ސ [pp_print_result ~ok ~error ppf r] prints [r] on [ppf] using [ok] if [r] is [Ok _] and [error] if [r] is [Error _]. @since 4.08 +Jtee+Kw@@@@@@@+b@%@/pp_print_either+Vy+Wy @б$leftб@г* )formatter+ez +fz @@ @@@ R0+g+f+f+g+g+g+g+g@0@A@@б@А!a@2J@ S +xz !+yz #@@г*ڠ$unit+z '+z +@@ @@@ T@@@@@ U@@@%@@ V"( @@б%rightб@г*>)formatter+{09+{0B@@ @@@ W5@@б@А!b@4J@ X@+{0F+{0H@@г+ $unit+{0L+{0P@@ @@@ YO@@@@@ ZR@@@#@@ [U& @@б@г*m)formatter+{0U+{0^@@ @@@ \d@@б@г*&Either!t+{0k+{0s@А!aow+{0c+{0e@@А!bC~+{0g+{0i@@@|J@@@++{0b@@г+R$unit+{0w+{0{@@ @@@,@@@@@-@@@9@@.< @@xJ@@/,{02@@@@0, z @@@,y@* [pp_print_either ~left ~right ppf e] prints [e] on [ppf] using [left] if [e] is [Either.Left _] and [right] if [e] is [Either.Right _]. @since 4.13 ,|||, @@@@@@@,3@%@,1 # {1:fpp Formatted pretty-printing} ,,!!,-!I@@@@@@0,+,*,*,+,+,+,+,+@#@A,B  Module [Format] provides a complete set of [printf] like functions for pretty-printing using format string specifications. Specific annotations may be added in the format strings to give pretty-printing commands to the pretty-printing engine. Those annotations are introduced in the format strings using the [@] character. For instance, [@ ] means a space break, [@,] means a cut, [@\[] opens a new box, and [@\]] closes the last open box. ,=KK,>@@@@@@'fprintf,G ,H'@б@г*)formatter,R*,S3@@ @@@5)@@б@г++&format,aM,bS@А!a@@J@6>,m8,n:@@г+)formatter,w<,xE@@ @@@7N@@г+ޠ$unit,G,K@@ @@@8\@@@1' @@@<c,71@@А!a/h,W,Y@@@4@@=m @@@J@@>pM@@@, @@,@ @@v,  [fprintf ff fmt arg1 ... argN] formats the arguments [arg1] to [argN] according to the format string [fmt], and outputs the resulting string on the formatter [ff]. The format string [fmt] is a character string which contains three types of objects: plain characters and conversion specifications as specified in the {!Printf} module, and pretty-printing indications specific to the [Format] module. The pretty-printing indication characters are introduced by a [@] character, and their meanings are: - [@\[]: open a pretty-printing box. The type and offset of the box may be optionally specified with the following syntax: the [<] character, followed by an optional box type indication, then an optional integer offset, and the closing [>] character. Pretty-printing box type is one of [h], [v], [hv], [b], or [hov]. '[h]' stands for an 'horizontal' pretty-printing box, '[v]' stands for a 'vertical' pretty-printing box, '[hv]' stands for an 'horizontal/vertical' pretty-printing box, '[b]' stands for an 'horizontal-or-vertical' pretty-printing box demonstrating indentation, '[hov]' stands a simple 'horizontal-or-vertical' pretty-printing box. For instance, [@\[] opens an 'horizontal-or-vertical' pretty-printing box with indentation 2 as obtained with [open_hovbox 2]. For more details about pretty-printing boxes, see the various box opening functions [open_*box]. - [@\]]: close the most recently opened pretty-printing box. - [@,]: output a 'cut' break hint, as with [print_cut ()]. - [@ ]: output a 'space' break hint, as with [print_space ()]. - [@;]: output a 'full' break hint as with [print_break]. The [nspaces] and [offset] parameters of the break hint may be optionally specified with the following syntax: the [<] character, followed by an integer [nspaces] value, then an integer [offset], and a closing [>] character. If no parameters are provided, the good break defaults to a 'space' break hint. - [@.]: flush the pretty-printer and split the line, as with [print_newline ()]. - [@]: print the following item as if it were of length [n]. Hence, [printf "@<0>%s" arg] prints [arg] as a zero length string. If [@] is not followed by a conversion specification, then the following character of the format is printed as if it were of length [n]. - [@\{]: open a semantic tag. The name of the tag may be optionally specified with the following syntax: the [<] character, followed by an optional string specification, and the closing [>] character. The string specification is any character string that does not contain the closing character ['>']. If omitted, the tag name defaults to the empty string. For more details about semantic tags, see the functions {!open_stag} and {!close_stag}. - [@\}]: close the most recently opened semantic tag. - [@?]: flush the pretty-printer as with [print_flush ()]. This is equivalent to the conversion [%!]. - [@\n]: force a newline, as with [force_newline ()], not the normal way of pretty-printing, you should prefer using break hints inside a vertical pretty-printing box. Note: To prevent the interpretation of a [@] character as a pretty-printing indication, escape it with a [%] character. Old quotation mode [@@] is deprecated since it is not compatible with formatted input interpretation of character ['@']. Example: [printf "@[%s@ %d@]@." "x =" 1] is equivalent to [open_box (); print_string "x ="; print_space (); print_int 1; close_box (); print_newline ()]. It prints [x = 1] within a pretty-printing 'horizontal-or-vertical' box. ,[[,@@@@@@0,,,,,,,,@r@A&printf,,@б@г+&format, ,@А!a@JJ@A ,,@@г+)formatter,,@@ @@@B0@@г,E$unit,, @@ @@@C>@@@1' @@@GE,1@@А!a/J,,@@@4@@HO @@@-@+ 9 Same as [fprintf] above, but output on [std_formatter]. --V@@@@@@@-)@@b'eprintf-X\-Xc@б@г+&format-(X|-)X@А!a@TJ@K0-0-/-/-0-0-0-0-0@|2@A-6Xg-7Xi@@г+䠐)formatter-@Xk-AXt@@ @@@L@@г,$unit-NXv-OXz@@ @@@M @@@3) @@@Q'-[Xf3@@А!a1,-`X-aX@@@6@@R1 @@@-gXX@, 9 Same as [fprintf] above, but output on [err_formatter]. -s-t@@@@@@@-@@D'sprintf--@б@г,T&format--@А!a@^J@U0--------@c~2@A--@@г,$unit--@@ @@@V@@г- &string--@@ @@@W @@@3) @@@['-3@@А!a1,--@@@6@@\1 @@@-@,i  Same as [printf] above, but instead of printing on a formatter, returns a string containing the result of formatting the arguments. Note that the pretty-printer queue is flushed at the end of {e each call} to [sprintf]. In case of multiple and related calls to [sprintf] to output material on a single string, you should consider using [fprintf] with the predefined formatter [str_formatter] and call [flush_str_formatter ()] to get the final result. Alternatively, you can use [Format.fprintf] with a formatter writing to a buffer of your own: flushing the formatter and the buffer at the end of pretty-printing returns the desired string. --@@@@@@@-@@D(asprintf--@б@г,'format4--@А!a@jJ@_0--------@c~2@A--@@г,)formatter..@@ @@@`@@г-k$unit..@@ @@@a @@г-}&string. .!@@ @@@b.@@@A7$ @@@g6..B@@А!a@;.3.4@@@E@@h@ @@@.:@,ڐ Same as [printf] above, but instead of printing on a formatter, returns a string containing the result of formatting the arguments. The type of [asprintf] is general enough to interact nicely with [%a] conversions. @since 4.01.0 .F.G@@@@@@@.^@@S'dprintf.R.S@б@г-''format4.].^@А!a@xJ@k0.e.d.d.e.e.e.e.e@r2@A.k.l@@г-)formatter.u.v@@ @@@l@@г-ܠ$unit..@@ @@@m @@б@г-7)formatter..@@ @@@n0@@г-$unit..@@ @@@o=@@@@@p@@@@SI6) @@@uH.T@@А!aRM. . @@@W@@vR @@@.@-]  Same as {!fprintf}, except the formatter is the last argument. [dprintf "..." a b c] is a function of type [formatter -> unit] which can be given to a format specifier [%t]. This can be used as a replacement for {!asprintf} to delay formatting decisions. Using the string returned by {!asprintf} in a formatting context forces formatting decisions to be taken in isolation, and the final string may be created prematurely. {!dprintf} allows delay of formatting decisions until the final formatting context is known. For example: {[ let t = Format.dprintf "%i@ %i@ %i" 1 2 3 in ... Format.printf "@[%t@]" t ]} @since 4.08.0 ..  ¢@@@@@@@.@@e(ifprintf.¥©.¥±@б@г-)formatter.¥´.¥½@@ @@@y0........@~,@A@@б@г-&format.¥.¥@А!a@J@z.¥.¥@@г-)formatter/¥/¥@@ @@@{'@@г.n$unit/¥/¥@@ @@@|5@@@1' @@@</"¥1@@А!a/A/'¥/(¥@@@4@@F @@@L@@IO@@@/1¥¥ @-ѐ Same as [fprintf] above, but does not print anything. Useful to ignore some material when conditionally printing. @since 3.10.0 /=/>mo@@@@@@@/U@@\/S / Formatted Pretty-Printing with continuations. /Nqq/Oqå@@@@@@0/M/L/L/M/M/M/M/M@l#@A(kfprintf/Zçë/[çó@б@б@г. )formatter/göù/hö@@ @@@@@А!a@J@%/vö/wö@@@ @@*@@б@г.()formatter/ö/ö@@ @@@9@@б@г.]'format4//@А!b@J@N//@@г.M)formatter//@@ @@@^@@г/$unit//@@ @@@l@@А!aQq//@@@8.Z@@@{/9@@А!b7//@@@<@@ @@@R@@U@@@c@@/öø @@@/çç@. Same as [fprintf] above, but instead of returning immediately, passes the formatter to its first argument at the end of printing. //GĎ@@@@@@@0@@(kdprintf/ĐĔ/ĐĜ@б@б@б@г.)formatter0ğģ0ğĬ@@ @@@000000000@0@A@@г/n$unit0ğİ0ğĴ@@ @@@@@@@@@@А!a@J@0'ğĹ0(ğĻ@@@ @@ 0,ğĢ@@б@г/'format406 07 @А!b@J@60B 0C @@г.)formatter0L 0M @@ @@@F@@г/$unit0Z 0[ @@ @@@T@@А!aCY0e 0f @@@8.L@@@c0o 9@@А!b7h0t 0u @@@<@@m @@@R@@p0|ğġ@@@0ĐĐ @/ Same as {!dprintf} above, but instead of returning immediately, passes the suspended printer to its first argument at the end of printing. @since 4.08.0 0!0%ŌŎ@@@@@@@0@@)ikfprintf0'ŐŔ0'Őŝ@б@б@г/H)formatter0(Šţ0(ŠŬ@@ @@@000000000@.@A@@А!a@J@ 0(ŠŰ0(ŠŲ@@@ @@@@б@г/g)formatter0(Šŷ0(Š@@ @@@@@б@г/'format40)0)@А!b@J@40)0)@@г/)formatter0)0)@@ @@@D@@г0O$unit0)0)@@ @@@R@@А!aQW1)1)@@@8.Z@@@a1 )9@@А!b7f1)1)@@@<@@k @@@R@@nU@@@c@@q1(ŠŢ @@@1'ŐŐ@/ Same as [kfprintf] above, but does not print anything. Useful to ignore some material when conditionally printing. @since 3.12.0 1**1+.xz@@@@@@@1B@@(ksprintf 160|ƀ170|ƈ@б@б@г0&string1C0|ƌ1D0|ƒ@@ @@@01E1D1D1E1E1E1E1E@.@A@@А!a@J@ 1T0|Ɩ1U0|Ƙ@@@ @@@@б@г0,'format41b0|ƴ1c0|ƻ@А!b@J@%1n0|ƞ1o0|Ơ@@г0Ѡ$unit1x0|Ƣ1y0|Ʀ@@ @@@5@@г0㠐&string10|ƨ10|Ʈ@@ @@@C@@А!aBH10|ư10|Ʋ@@@8.K@@@R10|Ɲ9@@А!b7W10|ƿ10|@@@<@@\ @@@Q@@_10|Ƌ@@@10|| @0K b Same as [sprintf] above, but instead of returning the string, passes it to the first argument. 1112)@@@@@@@1@@s)kasprintf!14+/14+8@б@б@г1-&string14+<14+B@@ @@@011111111@.@A@@А!a@J@ 14+F14+H@@@ @@@@б@г0'format414+g14+n@А!b@J@%14+N14+P@@г0)formatter24+R24+[@@ @@@5@@г1l$unit24+]24+a@@ @@@C@@А!aBH24+c24+e@@@8.K@@@R2(4+M9@@А!b7W2-4+r2.4+t@@@<@@\ @@@Q@@_254+;@@@284++ @0ؐ r Same as [asprintf] above, but instead of returning the string, passes it to the first argument. @since 4.03 2D5uu2E9@@@@@@@2\@@s2Z0 {1 Deprecated} 2U;2V;@@@@@@02T2S2S2T2T2T2T2T@#@A'bprintf"2a= 2b=@б@г17&Buffer!t2o=2p=@@ @@@@@б@г1H&format2~=52=;@А!a@J@22= 2="@@г18)formatter2=$2=-@@ @@@B@@г1$unit2=/2=3@@ @@@P@@@1' @@@W2=1@@А!a/\2=?2=A@@@4@@a @@@J@@dM@@@2=2>BX@0ocaml.deprecated2>BG2>BW@@2>BD @1i | @deprecated This function is error prone. Do not use it. This function is neither compositional nor incremental, since it flushes the pretty-printer queue at each call. If you need to print to some buffer [b], you must first define a formatter writing to [b], using [let to_b = formatter_of_buffer b]; then use regular calls to [Format.fprintf] with formatter [to_b]. 2?YY2F@@@@@@@2@@'kprintf#2H2H@б@б@г2K&string2H2H@@ @@@022222222@9@A@@А!a@J@ 2H3H@@@ @@@@б@г1'format43 H3H@А!b@J@%3H3H@@г2|$unit3#H3$H@@ @@@5@@г2&string31H32H @@ @@@C@@А!aBH3<H3=H@@@8.K@@@R3FH9@@А!b7W3KH3LH @@@<@@\ @@@Q@@_3SH@@@3VH3WI!V@0ocaml.deprecated3]I!&3^I!6@̄@0ocaml.deprecated5W[>A5X[>Q@ /Use Format.get_formatter_out_functions instead.5b[>S5c[>̂@@5e[>R5f[>̃@@@@@5h[>>@4 8 @deprecated Subsumed by [get_formatter_out_functions]. 5t\̅̅5u\̅@@@@@@@5@('@&) %pp_set_all_formatter_output_functions&5^5^@б@г4/)formatter5_5_@@ @@@%055555555@ D@A@@б#outб@г4&string5_5_ @@ @@@&@@б@г5Y#int5_5_@@ @@@'$@@б@г5h#int5_5_@@ @@@(3@@г5$$unit5_5_ @@ @@@)@@@@@@*C@@@%@@+F( @@@7@@,I:@@б%flushб@г5@$unit5_,5_0@@ @@@-\@@г5M$unit5_45_8@@ @@@.i@@@@@/l@@б'newlineб@г5c$unit6 `=H6 `=L@@ @@@0@@г5p$unit6`=P6`=T@@ @@@1@@@@@2@@б&spacesб@г5נ#int6-`=a6.`=d@@ @@@3@@г5$unit6:`=h6;`=l@@ @@@4@@@@@5@@г5$unit6J`=q6K`=u@@ @@@6@@0@@7°6S`=Y @@W9@@8ư6W`=? @@~`@@9ʰ6[_%@@@@:ΰ6__@@@@@;Ұ@@@6e^6favͿ@0ocaml.deprecated6lavy6mav͉@ 2Use Format.pp_set_formatter_out_functions instead.6wav͋6xavͽ@@6zav͊6{av;@@@@@6}avv@5 ; @deprecated Subsumed by [pp_set_formatter_out_functions]. 6b6b@@@@@@@6@('@&) %pp_get_all_formatter_output_functions'6d6d+@б@г5D)formatter6e.06e.9@@ @@@<066666666@+D@A@@б@г6 $unit6e.=6e.A@@ @@@=@@Вб@г6 &string6fEH6fEN@@ @@@>#@@б@г6|#int6fER6fEU@@ @@@?2@@б@г6#int6fEY6fE\@@ @@@@A@@г6G$unit6fE`6fEd@@ @@@AN@@@@@BQ@@@%@@CT( @@@7@@DW:@@б@г6`$unit7fEi7fEm@@ @@@Eg@@г6m$unit7fEq7fEu@@ @@@Ft@@@@@Gw@@б@г6$unit7'fEz7(fE~@@ @@@H@@г6$unit74fE΂75fEΆ@@ @@@I@@@@@J@@б@г6#int7GgΊ΍7HgΊΐ@@ @@@K@@г6$unit7TgΊΔ7UgΊΘ@@ @@@L@@@@@M@@@fG( @@N7dfEG7egΊΙ@@@ @@Oð@@@@@Pư@@@7nd7ohΚ@0ocaml.deprecated7uhΚΝ7vhΚέ@ 2Use Format.pp_get_formatter_out_functions instead.7hΚί7hΚ@@7hΚή7hΚ@@@@@7hΚΚ@6& ; @deprecated Subsumed by [pp_get_formatter_out_functions]. 7i7i$@@@@@@@7@('@&)71 {2 String tags} 7k&&7k&<@@@@@@077777777@;@A+pp_open_tag(7m>B7m>M@б@г6^)formatter7m>P7m>Y@@ @@@Q@@б@г M#tag7m>]7m>`@@ @@@R)@@г7/$unit7m>d7m>h@@ @@@S6@@@@@T9@@@%@@U<( @@@7m>>7niϘ@0ocaml.deprecated7nil7ni|@8Use Format.pp_open_stag.7ni~7niϖ@@7ni}7niϗ@@@@@7nii@6 * @deprecated Subsumed by {!pp_open_stag}. 8oϙϙ8 oϙ@@@@@@@8 @('@&g)(open_tag)8q8q@б@г #tag8q8 q@@ @@@V08!8 8 8!8!8!8!8!@{D@A@@г7$unit8.q8/q@@ @@@W@@@@@X@@@89q8:r@0ocaml.deprecated8@r8Ar@5Use Format.open_stag.8Kr8Lr@@8Nr8Or@@@@@8Qr@6񐠠 ' @deprecated Subsumed by {!open_stag}. 8]s8^s>@@@@@@@8u@('@&=),pp_close_tag*8iu@D8ju@P@б@г7)formatter8tu@S8uu@\@@ @@@Y08v8u8u8v8v8v8v8v@VkD@A@@б@г7ޠ$unit8u@`8u@d@@ @@@Z@@г7렐$unit8u@h8u@l@@ @@@[@@@@@\!@@@'@@]$* @@@8u@@8vmН@0ocaml.deprecated8vmp8vmЀ@9Use Format.pp_close_stag.8vmЂ8vmЛ@@8vmЁ8vmМ@@@@@8vmm@7X + @deprecated Subsumed by {!pp_close_stag}. 8wОО8wО@@@@@@@8@('@&O))close_tag+8y8y@б@г84$unit8y8y@@ @@@^088888888@h}D@A@@г8C$unit8y8y@@ @@@_@@@@@`@@@8y8z@0ocaml.deprecated8z8z@6Use Format.close_stag.9z9z@@9 z9 z@@@@@9 z@7 ( @deprecated Subsumed by {!close_stag}. 9{9{H@@@@@@@91@('@&=)A(7formatter_tag_functions,J9&}JO9'}Jf@@8@@-mark_open_tag-@@!@@@a8@@@b@@c99~km9:~kы@@9Q.mark_close_tag.@@!@@@f8@@@g@@h9Kью9Lьѭ@@9c.print_open_tag/@@!@@@k8@@@l@@m9]ѮѰ9^Ѯ@@9u/print_close_tag0@@!@@@p8@@@q@@r9o9p@@9@@A@@@@@9s}JJ9t%@0ocaml.deprecated9z9{@=Use formatter_stag_functions.99#@@99$@@@@@9@8+ 6 @deprecated Subsumed by {!formatter_stag_functions}. 9&&9&a@@@@@@@@@9@qqf9~kz@@Ш@б@гt#tag9~k}9~kр@@|099999999@8@@@A@@@@@>;@@@A@@г}&string9~kф9~kъ@@ @@@@@L@d@@v9ьќ@@Ш@б@г#tag9ьџ9ьѢ@@"@@г&string9ьѦ9ьѬ@@+@@, @@@L@i/@@9ѮѾ@@Ш@б@г#tag9Ѯ9Ѯ@@@@@г$unit9Ѯ9Ѯ@@I@@J @@@L@nM@@9@@Ш@б@г#tag:: @@^@@г$unit::@@g@@h @@@L@sk@@@A@@0::::::::@j@A@>pp_set_formatter_tag_functions1:!cg:"c҅@б@г8Р)formatter:,҈Ҋ:-҈ғ@@ @@@0:.:-:-:.:.:.:.:.@ @A@@б@г7formatter_tag_functions:=҈җ:>҈Ү@@ @@@@@г9$unit:J҈Ҳ:K҈Ҷ@@ @@@@@@@@!@@@'@@$* @@@:Xcc:Y?O@0ocaml.deprecated:_ҷҺ:`ҷ@ iThis function will erase non-string tag formatting functions. Use Format.pp_set_formatter_stag_functions.:j:k<@@:m:n=@@@@@:pҷҷ:q>@'warning:w?B:x?I@"-3:?K:?M@@:?J:?N@@@@@:??0@9(  This function will erase non-string tag formatting functions. @deprecated Subsumed by {!pp_set_formatter_stag_functions}. :PP:Ӓ@@@@@@@:@@?@>gA;set_formatter_tag_functions2::@б@г7formatter_tag_functions::@@ @@@0::::::::@\@A@@г:$unit::@@ @@@@@@@@@@@::Xh@0ocaml.deprecated::+@ (Use Format.set_formatter_stag_functions.:-:U@@:,:V@@@@@::W@'warning:X[:Xb@"-3:Xd:Xf@@:Xc:Xg@@@@@:XX0@9 : @deprecated Subsumed by {!set_formatter_stag_functions}. ;ii;iԨ@@@@@@@;@@?@>UA>pp_get_formatter_tag_functions3; ԪԮ;Ԫ@б@г9)formatter;;@@ @@@0;;;;;;;;@n\@A@@б@г:$unit;);*@@ @@@@@г7formatter_tag_functions;6;7@@ @@@@@@@@!@@@'@@$* @@@;DԪԪ;EAQ@0ocaml.deprecated;K;L@ +Use Format.pp_get_formatter_stag_functions.;V;W>@@;Y;Z?@@@@@;\;]@@'warning;cAD;dAK@"-3;nAM;oAO@@;qAL;rAP@@@@@;tAA0@: = @deprecated Subsumed by {!pp_get_formatter_stag_functions}. ;RR;RՔ@@@@@@@;@@?@>gA;get_formatter_tag_functions4;Ֆ՚;Ֆյ@б@г:$unit;Ֆո;Ֆռ@@ @@@0;;;;;;;;@\@A@@г7formatter_tag_functions;Ֆ;Ֆ@@ @@@@@@@@@@@;ՖՖ;(@0ocaml.deprecated;;@ (Use Format.get_formatter_stag_functions.;;@@;;@@@@@;;@'warning;;"@"-3;$;&@@;#;'@@@@@;0@: : @deprecated Subsumed by {!get_formatter_stag_functions}. ;));)h@@@@@@@<@@?@>UA@::A@:_:(@:!9@99@99@9k92@9+9@88@88@8u8<@858@77@77@7n77@707 @66@66@6z6/@6(5@55@55t@5`5'@5 4@44@44~@4j41@4*4@33@33j@3V3@32@22@22P@2<1@11T@1M1&@10@00@00O@0H0!@0 /@//@//J@/C/@/.@..@.|.E@.>.@.-@--@-v-pA@-(-@,,@,,V@,O+@++@++X@+D+ @+*@**@*h*1@***@))@))@)t);@)4) @((@((t@(`('@( '@''@''~@'j'1@'*'@&&@&&d@&?&@&%@%%@%%_@%9%3A@%%A@$$@@$$@$~$W@$C$ @$#@##@##a@#M#@# "@""@""k@"W"@"!@!!@!!u@!a!%@! @  >@ 7@@y@5/A@@@zA@:@A@ @@Y@R+@@@@{Q@=%@@@*@@A@A@@c@O@@@nG@"o@[@W@C@{@@d@L@@B@.@R@> @  4@  @  @  n@ Z @  _@ @ @ @@@@|E@@@a:@ A@@p@,@@@0=4=3=3=4=4=4=4=4@@A@ H************************************************************************==A@@=>A@L@ H =CBMM=DBM@ H OCaml =IC=JC@ H =OD=PD3@ H Pierre Weis, projet Cristal, INRIA Rocquencourt =UE44=VE4@ H =[F=\F@ H Copyright 1996 Institut National de Recherche en Informatique et =aG=bG@ H en Automatique. =gH=hHg@ H =mIhh=nIh@ H All rights reserved. This file is distributed under the terms of =sJ=tJ@ H the GNU Lesser General Public License version 2.1, with the =yK=zKN@ H special exception on linking described in the file LICENSE. =LOO=LO@ H =M=M@ H************************************************************************=N=N5@ * Pretty-printing. This module implements a pretty-printing facility to format values within {{!boxes}'pretty-printing boxes'} and {{!tags}'semantic tags'} combined with a set of {{!fpp}printf-like functions}. The pretty-printer splits lines at specified {{!breaks}break hints}, and indents lines according to the box structure. Similarly, {{!tags}semantic tags} can be used to decouple text presentation from its contents. This pretty-printing facility is implemented as an overlay on top of abstract {{!section:formatter}formatters} which provide basic output functions. Some formatters are predefined, notably: - {!std_formatter} outputs to {{!Stdlib.stdout}stdout} - {!err_formatter} outputs to {{!Stdlib.stderr}stderr} Most functions in the {!Format} module come in two variants: a short version that operates on {!std_formatter} and the generic version prefixed by [pp_] that takes a formatter as its first argument. More formatters can be created with {!formatter_of_out_channel}, {!formatter_of_buffer}, {!formatter_of_symbolic_output_buffer} or using {{!section:formatter}custom formatters}. = !* {1 Introduction} You may consider this module as providing an extension to the [printf] facility to provide automatic line splitting. The addition of pretty-printing annotations to your regular [printf] format strings gives you fancy indentation and line breaks. Pretty-printing annotations are described below in the documentation of the function {!Format.fprintf}. You may also use the explicit pretty-printing box management and printing functions provided by this module. This style is more basic but more verbose than the concise [fprintf] format strings. For instance, the sequence [open_box 0; print_string "x ="; print_space (); print_int 1; close_box (); print_newline ()] that prints [x = 1] within a pretty-printing box, can be abbreviated as [printf "@[%s@ %i@]@." "x =" 1], or even shorter [printf "@[x =@ %i@]@." 1]. Rule of thumb for casual users of this library: - use simple pretty-printing boxes (as obtained by [open_box 0]); - use simple break hints as obtained by [print_cut ()] that outputs a simple break hint, or by [print_space ()] that outputs a space indicating a break hint; - once a pretty-printing box is open, display its material with basic printing functions (e. g. [print_int] and [print_string]); - when the material for a pretty-printing box has been printed, call [close_box ()] to close the box; - at the end of pretty-printing, flush the pretty-printer to display all the remaining material, e.g. evaluate [print_newline ()]. The behavior of pretty-printing commands is unspecified if there is no open pretty-printing box. Each box opened by one of the [open_] functions below must be closed using [close_box] for proper formatting. Otherwise, some of the material printed in the boxes may not be output, or may be formatted incorrectly. In case of interactive use, each phrase is executed in the initial state of the standard pretty-printer: after each phrase execution, the interactive system closes all open pretty-printing boxes, flushes all pending text, and resets the standard pretty-printer. Warning: mixing calls to pretty-printing functions of this module with calls to {!Stdlib} low level output functions is error prone. The pretty-printing functions output material that is delayed in the pretty-printer queue and stacks in order to compute proper line splitting. In contrast, basic I/O output functions write directly in their output device. As a consequence, the output of a basic I/O function may appear before the output of a pretty-printing function that has been called before. For instance, [ Stdlib.print_string "<"; Format.print_string "PRETTY"; Stdlib.print_string ">"; Format.print_string "TEXT"; ] leads to output [<>PRETTYTEXT]. ] tags or [ ] entities. The custom break is useful if you want to change which visible (non-whitespace) characters are printed in case of break or no break. For example, when printing a list [ [a; b; c] ], you might want to add a trailing semicolon when it is printed vertically: {[ [ a; b; c; ] ]} You can do this as follows: {[ printf "@[[@;<0 2>@[a;@,b;@,c@]%t]@]@\n" (pp_print_custom_break ~fits:("", 0, "") ~breaks:(";", 0, "")) ]} @since 4.08.0 3@ O* Force a new line in the current pretty-printing box. The pretty-printer must split the line at this point, Not the normal way of pretty-printing, since imperative line splitting may interfere with current line counters and box size calculation. Using break hints within an enclosing vertical box is a better alternative. 2Ġ * Execute the next formatting command if the preceding line has just been split. Otherwise, ignore the next formatting command. 2H "* {1 Pretty-printing termination} 2: s* End of pretty-printing: resets the pretty-printer to initial state. All open pretty-printing boxes are closed, all pending text is printed. In addition, the pretty-printer low level output device is flushed to ensure that all pending text is really displayed. Note: never use [print_flush] in the normal course of a pretty-printing routine, since the pretty-printer uses a complex buffering machinery to properly indent the output; manually flushing those buffers at random would conflict with the pretty-printer strategy and result to poor rendering. Only consider using [print_flush] when displaying all pending material is mandatory (for instance in case of interactive use when you want the user to read some text) and when resetting the pretty-printer state will not disturb further pretty-printing. Warning: If the output device of the pretty-printer is an output channel, repeated calls to [print_flush] means repeated calls to {!Stdlib.flush} to flush the out channel; these explicit flush calls could foil the buffering strategy of output channels and could dramatically impact efficiency. 1 * End of pretty-printing: resets the pretty-printer to initial state. All open pretty-printing boxes are closed, all pending text is printed. Equivalent to {!print_flush} followed by a new line. See corresponding words of caution for {!print_flush}. Note: this is not the normal way to output a new line; the preferred method is using break hints within a vertical pretty-printing box. 1D-* {1 Margin} 16 * [pp_set_margin ppf d] sets the right margin to [d] (in characters): the pretty-printer splits lines that overflow the right margin according to the break hints given. Setting the margin to [d] means that the formatting engine aims at printing at most [d-1] characters per line. Nothing happens if [d] is smaller than 2. If [d] is too large, the right margin is set to the maximum admissible value (which is greater than [10 ^ 9]). If [d] is less than the current maximum indentation limit, the maximum indentation limit is decreased while trying to preserve a minimal ratio [max_indent/margin>=50%] and if possible the current difference [margin - max_indent]. See also {!pp_set_geometry}. 0 ,* Returns the position of the right margin. 0@ ** {1:maxindent Maximum indentation limit} 02 !* [pp_set_max_indent ppf d] sets the maximum indentation limit of lines to [d] (in characters): once this limit is reached, new pretty-printing boxes are rejected to the left, unless the enclosing box fully fits on the current line. As an illustration, {[ set_margin 10; set_max_indent 5; printf "@[123456@[7@]89A@]@." ]} yields {[ 123456 789A ]} because the nested box ["@[7@]"] is opened after the maximum indentation limit ([7>5]) and its parent box does not fit on the current line. Either decreasing the length of the parent box to make it fit on a line: {[ printf "@[123456@[7@]89@]@." ]} or opening an intermediary box before the maximum indentation limit which fits on the current line {[ printf "@[123@[456@[7@]89@]A@]@." ]} avoids the rejection to the left of the inner boxes and print respectively ["123456789"] and ["123456789A"] . Note also that vertical boxes never fit on a line whereas horizontal boxes always fully fit on the current line. Opening a box may split a line whereas the contents may have fit. If this behavior is problematic, it can be curtailed by setting the maximum indentation limit to [margin - 1]. Note that setting the maximum indentation limit to [margin] is invalid. Nothing happens if [d] is smaller than 2. If [d] is too large, the limit is set to the maximum admissible value (which is greater than [10 ^ 9]). If [d] is greater or equal than the current margin, it is ignored, and the current maximum indentation limit is kept. See also {!pp_set_geometry}. / 8* Return the maximum indentation limit (in characters). /< * {1 Geometry } Geometric functions can be used to manipulate simultaneously the coupled variables, margin and maxixum indentation limit. /. F* Check if the formatter geometry is valid: [1 < max_indent < margin] . * [pp_set_geometry ppf ~max_indent ~margin] sets both the margin and maximum indentation limit for [ppf]. When [1 < max_indent < margin], [pp_set_geometry ppf ~max_indent ~margin] is equivalent to [pp_set_margin ppf margin; pp_set_max_indent ppf max_indent]; and avoids the subtly incorrect [pp_set_max_indent ppf max_indent; pp_set_margin ppf margin]; Outside of this domain, [pp_set_geometry] raises an invalid argument exception whereas [pp_safe_set_geometry] does nothing. @since 4.08.0 -U 3* [pp_update_geometry ppf (fun geo -> { geo with ... })] lets you update a formatter's geometry in a way that is robust to extension of the [geometry] record with new fields. Raises an invalid argument exception if the returned geometry does not satisfy {!check_geometry}. @since 4.11.0 , B* Return the current geometry of the formatter @since 4.08.0 ,7?* {1 Maximum formatting depth} ,) * The maximum formatting depth is the maximum number of pretty-printing boxes simultaneously open. Material inside boxes nested deeper is printed as an ellipsis (more precisely as the text returned by {!get_ellipsis_text} [()]). , * [pp_set_max_boxes ppf max] sets the maximum number of pretty-printing boxes simultaneously open. Material inside boxes nested deeper is printed as an ellipsis (more precisely as the text returned by {!get_ellipsis_text} [()]). Nothing happens if [max] is smaller than 2. + Q* Returns the maximum number of pretty-printing boxes allowed before ellipsis. +' [* Tests if the maximum number of pretty-printing boxes allowed have already been opened. *7* {1 Tabulation boxes} * b* A {e tabulation box} prints material on lines divided into cells of fixed length. A tabulation box provides a simple way to display vertical columns of left adjusted text. This box features command [set_tab] to define cell boundaries, and command [print_tab] to move from cell to cell and split the line when there is no more cells to print on the line. Note: printing within tabulation box is line directed, so arbitrary line splitting inside a tabulation box leads to poor rendering. Yet, controlled use of tabulation boxes allows simple printing of columns within module {!Format}. * * [open_tbox ()] opens a new tabulation box. This box prints lines separated into cells of fixed width. Inside a tabulation box, special {e tabulation markers} defines points of interest on the line (for instance to delimit cell boundaries). Function {!Format.set_tab} sets a tabulation marker at insertion point. A tabulation box features specific {e tabulation breaks} to move to next tabulation marker or split the line. Function {!Format.print_tbreak} prints a tabulation break. * 2* Closes the most recently opened tabulation box. ) 7* Sets a tabulation marker at current insertion point. ) =* [print_tab ()] emits a 'next' tabulation break hint: if not already set on a tabulation marker, the insertion point moves to the first tabulation marker on the right, or the pretty-printer splits the line and insertion point moves to the leftmost tabulation marker. It is equivalent to [print_tbreak 0 0]. ( * [print_tbreak nspaces offset] emits a 'full' tabulation break hint. If not already set on a tabulation marker, the insertion point moves to the first tabulation marker on the right and the pretty-printer prints [nspaces] spaces. If there is no next tabulation marker on the right, the pretty-printer splits the line at this point, then insertion point moves to the leftmost tabulation marker of the box. If the pretty-printer splits the line, [offset] is added to the current indentation. (/* {1 Ellipsis} ' w* Set the text of the ellipsis printed when too many pretty-printing boxes are open (a single dot, [.], by default). '{ #* Return the text of the ellipsis. &9* {1:tags Semantic tags} & k* {i Semantic tags} (or simply {e tags}) are user's defined annotations to associate user's specific operations to printed entities. Common usage of semantic tags is text decoration to get specific font or text size rendering for a display device, or marking delimitation of entities (e.g. HTML or TeX elements or terminal escape sequences). More sophisticated usage of semantic tags could handle dynamic modification of the pretty-printer behavior to properly print the material within some specific tags. For instance, we can define an RGB tag like so: {[ type stag += RGB of {r:int;g:int;b:int} ]} In order to properly delimit printed entities, a semantic tag must be opened before and closed after the entity. Semantic tags must be properly nested like parentheses using {!pp_open_stag} and {!pp_close_stag}. Tag specific operations occur any time a tag is opened or closed, At each occurrence, two kinds of operations are performed {e tag-marking} and {e tag-printing}: - The tag-marking operation is the simpler tag specific operation: it simply writes a tag specific string into the output device of the formatter. Tag-marking does not interfere with line-splitting computation. - The tag-printing operation is the more involved tag specific operation: it can print arbitrary material to the formatter. Tag-printing is tightly linked to the current pretty-printer operations. Roughly speaking, tag-marking is commonly used to get a better rendering of texts in the rendering device, while tag-printing allows fine tuning of printing routines to print the same entity differently according to the semantic tags (i.e. print additional material or even omit parts of the output). More precisely: when a semantic tag is opened or closed then both and successive 'tag-printing' and 'tag-marking' operations occur: - Tag-printing a semantic tag means calling the formatter specific function [print_open_stag] (resp. [print_close_stag]) with the name of the tag as argument: that tag-printing function can then print any regular material to the formatter (so that this material is enqueued as usual in the formatter queue for further line splitting computation). - Tag-marking a semantic tag means calling the formatter specific function [mark_open_stag] (resp. [mark_close_stag]) with the name of the tag as argument: that tag-marking function can then return the 'tag-opening marker' (resp. `tag-closing marker') for direct output into the output device of the formatter. Being written directly into the output device of the formatter, semantic tag marker strings are not considered as part of the printing material that drives line splitting (in other words, the length of the strings corresponding to tag markers is considered as zero for line splitting). Thus, semantic tag handling is in some sense transparent to pretty-printing and does not interfere with usual indentation. Hence, a single pretty-printing routine can output both simple 'verbatim' material or richer decorated output depending on the treatment of tags. By default, tags are not active, hence the output is not decorated with tag information. Once [set_tags] is set to [true], the pretty-printer engine honors tags and decorates the output accordingly. Default tag-marking functions behave the HTML way: {{!tag}string tags} are enclosed in "<" and ">" while other tags are ignored; hence, opening marker for tag string ["t"] is [""] and closing marker is [""]. Default tag-printing functions just do nothing. Tag-marking and tag-printing functions are user definable and can be set by calling {!set_formatter_stag_functions}. Semantic tag operations may be set on or off with {!set_tags}. Tag-marking operations may be set on or off with {!set_mark_tags}. Tag-printing operations may be set on or off with {!set_print_tags}. @since 4.08.0 &֠ * [String_tag s] is a string tag [s]. String tags can be inserted either by explicitly using the constructor [String_tag] or by using the dedicated format syntax ["@{ ... @}"]. @since 4.08.0 & '* [pp_open_stag ppf t] opens the semantic tag named [t]. The [print_open_stag] tag-printing function of the formatter is called with [t] as argument; then the opening tag marker for [t], as given by [mark_open_stag t], is written into the output device of the formatter. @since 4.08.0 % 3* [pp_close_stag ppf ()] closes the most recently opened semantic tag [t]. The closing tag marker, as given by [mark_close_stag t], is written into the output device of the formatter; then the [print_close_stag] tag-printing function of the formatter is called with [t] as argument. @since 4.08.0 %} Y* [pp_set_tags ppf b] turns on or off the treatment of semantic tags (default is off). % I* [pp_set_print_tags ppf b] turns on or off the tag-printing operations. $ G* [pp_set_mark_tags ppf b] turns on or off the tag-marking operations. $ 8* Return the current status of tag-printing operations. # 7* Return the current status of tag-marking operations. # 0* {1 Redirecting the standard formatter output} "  (* Redirect the standard pretty-printer output to the given channel. (All the output functions of the standard formatter are set to the default output functions printing to the given channel.) [set_formatter_out_channel] is equivalent to {!pp_set_formatter_out_channel} [std_formatter]. " C* [pp_set_formatter_output_functions ppf out flush] redirects the standard pretty-printer output functions to the functions [out] and [flush]. The [out] function performs all the pretty-printer string output. It is called with a string [s], a start position [p], and a number of characters [n]; it is supposed to output characters [p] to [p + n - 1] of [s]. The [flush] function is called whenever the pretty-printer is flushed (via conversion [%!], or pretty-printing indications [@?] or [@.], or using low level functions [print_flush] or [print_newline]). !Q F* Return the current output functions of the standard pretty-printer.   ** {1:meaning Redefining formatter output}   * The [Format] module is versatile enough to let you completely redefine the meaning of pretty-printing output: you may provide your own functions to define how to handle indentation, line splitting, and even printing of all the characters that have to be printed!  "* {2 Redefining output functions} 0* @since 4.06.0 q * The set of output functions specific to a formatter: - the [out_string] function performs all the pretty-printer string output. It is called with a string [s], a start position [p], and a number of characters [n]; it is supposed to output characters [p] to [p + n - 1] of [s]. - the [out_flush] function flushes the pretty-printer output device. - [out_newline] is called to open a new line when the pretty-printer splits the line. - the [out_spaces] function outputs spaces when a break hint leads to spaces instead of a line split. It is called with the number of spaces to output. - the [out_indent] function performs new line indentation when the pretty-printer splits the line. It is called with the indentation value of the new line. By default: - fields [out_string] and [out_flush] are output device specific; (e.g. {!Stdlib.output_string} and {!Stdlib.flush} for a {!Stdlib.out_channel} device, or [Buffer.add_substring] and {!Stdlib.ignore} for a [Buffer.t] output device), - field [out_newline] is equivalent to [out_string "\n" 0 1]; - fields [out_spaces] and [out_indent] are equivalent to [out_string (String.make n ' ') 0 n]. @since 4.01.0 d 9* [pp_set_formatter_out_functions ppf out_funs] Set all the pretty-printer output functions of [ppf] to those of argument [out_funs], This way, you can change the meaning of indentation (which can be something else than just printing space characters) and the meaning of new lines opening (which can be connected to any other action needed by the application at hand). Reasonable defaults for functions [out_spaces] and [out_newline] are respectively [out_funs.out_string (String.make n ' ') 0 n] and [out_funs.out_string "\n" 0 1]. @since 4.01.0 6 * Return the current output functions of the pretty-printer, including line splitting and indentation functions. Useful to record the current setting and restore it afterwards. @since 4.01.0  5* {1:tagsmeaning Redefining semantic tag operations}  * The semantic tag handling functions specific to a formatter: [mark] versions are the 'tag-marking' functions that associate a string marker to a tag in order for the pretty-printing engine to write those markers as 0 length tokens in the output device of the formatter. [print] versions are the 'tag-printing' functions that can perform regular printing when a tag is closed or opened. @since 4.08.0 H E* [pp_set_formatter_stag_functions ppf tag_funs] changes the meaning of opening and closing semantic tag operations to use the functions in [tag_funs] when printing on [ppf]. When opening a semantic tag with name [t], the string [t] is passed to the opening tag-marking function (the [mark_open_stag] field of the record [tag_funs]), that must return the opening tag marker for that name. When the next call to [close_stag ()] happens, the semantic tag name [t] is sent back to the closing tag-marking function (the [mark_close_stag] field of record [tag_funs]), that must return a closing tag marker for that name. The [print_] field of the record contains the tag-printing functions that are called at tag opening and tag closing time, to output regular material in the pretty-printer queue. @since 4.08.0 P m* Return the current semantic tag operation functions of the standard pretty-printer. @since 4.08.0 Ԡ * {1:formatter Defining formatters} Defining new formatters permits unrelated output of material in parallel on several output devices. All the parameters of a formatter are local to the formatter: right margin, maximum indentation limit, maximum number of pretty-printing boxes simultaneously open, ellipsis, and so on, are specific to each formatter and may be fixed independently. For instance, given a {!Buffer.t} buffer [b], {!formatter_of_buffer} [b] returns a new formatter using buffer [b] as its output device. Similarly, given a {!Stdlib.out_channel} output channel [oc], {!formatter_of_out_channel} [oc] returns a new formatter using channel [oc] as its output device. Alternatively, given [out_funs], a complete set of output functions for a formatter, then {!formatter_of_out_functions} [out_funs] computes a new formatter using those functions for output. Ơ l* [formatter_of_out_channel oc] returns a new formatter writing to the corresponding output channel [oc].  x* The standard formatter to write to standard output. It is defined as {!formatter_of_out_channel} {!Stdlib.stdout}. f l* A formatter to write to standard error. It is defined as {!formatter_of_out_channel} {!Stdlib.stderr}. > * [formatter_of_buffer b] returns a new formatter writing to buffer [b]. At the end of pretty-printing, the formatter must be flushed using {!pp_print_flush} or {!pp_print_newline}, to print all the pending material into the buffer.  5* The string buffer in which [str_formatter] writes. ֠ {* A formatter to output to the {!stdbuf} string buffer. [str_formatter] is defined as {!formatter_of_buffer} {!stdbuf}.  r* Returns the material printed with [str_formatter], flushes the formatter and resets the corresponding buffer. t * [make_formatter out flush] returns a new formatter that outputs with function [out], and flushes with function [flush]. For instance, {[ make_formatter (Stdlib.output oc) (fun () -> Stdlib.flush oc) ]} returns a formatter to the {!Stdlib.out_channel} [oc]. ޠ * [formatter_of_out_functions out_funs] returns a new formatter that writes with the set of output functions [out_funs]. See definition of type {!formatter_out_functions} for the meaning of argument [out_funs]. @since 4.06.0  (* {2:symbolic Symbolic pretty-printing}  K* Symbolic pretty-printing is pretty-printing using a symbolic formatter, i.e. a formatter that outputs symbolic pretty-printing items. When using a symbolic formatter, all regular pretty-printing activities occur but output material is symbolic and stored in a buffer of output items. At the end of pretty-printing, flushing the output buffer allows post-processing of symbolic output before performing low level output operations. In practice, first define a symbolic output buffer [b] using: - [let sob = make_symbolic_output_buffer ()]. Then define a symbolic formatter with: - [let ppf = formatter_of_symbolic_output_buffer sob] Use symbolic formatter [ppf] as usual, and retrieve symbolic items at end of pretty-printing by flushing symbolic output buffer [sob] with: - [flush_symbolic_output_buffer sob]. 9* symbolic flush command i;* symbolic newline command V 3* [Output_string s]: symbolic output for string [s]> ;* [Output_spaces n]: symbolic command to output [n] spaces & 6* [Output_indent i]: symbolic indentation of size [i]  ?* Items produced by symbolic pretty-printers @since 4.06.0  E* The output buffer of a symbolic pretty-printer. @since 4.06.0  b* [make_symbolic_output_buffer ()] returns a fresh buffer for symbolic output. @since 4.06.0 k K* [clear_symbolic_output_buffer sob] resets buffer [sob]. @since 4.06.0 1 Z* [get_symbolic_output_buffer sob] returns the contents of buffer [sob]. @since 4.06.0 蠠  * [flush_symbolic_output_buffer sob] returns the contents of buffer [sob] and resets buffer [sob]. [flush_symbolic_output_buffer sob] is equivalent to [let items = get_symbolic_output_buffer sob in clear_symbolic_output_buffer sob; items] @since 4.06.0  W* [add_symbolic_output_item sob itm] adds item [itm] to buffer [sob]. @since 4.06.0 S * [formatter_of_symbolic_output_buffer sob] returns a symbolic formatter that outputs to [symbolic_output_buffer] [sob]. @since 4.06.0  (* {1 Convenience formatting functions.}  * [pp_print_list ?pp_sep pp_v ppf l] prints items of list [l], using [pp_v] to print each item, and calling [pp_sep] between items ([pp_sep] defaults to {!pp_print_cut}. Does nothing on empty lists. @since 4.02.0 E * [pp_print_seq ?pp_sep pp_v ppf s] prints items of sequence [s], using [pp_v] to print each item, and calling [pp_sep] between items ([pp_sep] defaults to {!pp_print_cut}. Does nothing on empty sequences. This function does not terminate on infinite sequences. @since 4.12 { * [pp_print_text ppf s] prints [s] with spaces and newlines respectively printed using {!pp_print_space} and {!pp_force_newline}. @since 4.02.0 / * [pp_print_option ?none pp_v ppf o] prints [o] on [ppf] using [pp_v] if [o] is [Some v] and [none] if it is [None]. [none] prints nothing by default. @since 4.08 h * [pp_print_result ~ok ~error ppf r] prints [r] on [ppf] using [ok] if [r] is [Ok _] and [error] if [r] is [Error _]. @since 4.08  * [pp_print_either ~left ~right ppf e] prints [e] on [ppf] using [left] if [e] is [Either.Left _] and [right] if [e] is [Either.Right _]. @since 4.13 Ϡ $* {1:fpp Formatted pretty-printing}  * Module [Format] provides a complete set of [printf] like functions for pretty-printing using format string specifications. Specific annotations may be added in the format strings to give pretty-printing commands to the pretty-printing engine. Those annotations are introduced in the format strings using the [@] character. For instance, [@ ] means a space break, [@,] means a cut, [@\[] opens a new box, and [@\]] closes the last open box.  * [fprintf ff fmt arg1 ... argN] formats the arguments [arg1] to [argN] according to the format string [fmt], and outputs the resulting string on the formatter [ff]. The format string [fmt] is a character string which contains three types of objects: plain characters and conversion specifications as specified in the {!Printf} module, and pretty-printing indications specific to the [Format] module. The pretty-printing indication characters are introduced by a [@] character, and their meanings are: - [@\[]: open a pretty-printing box. The type and offset of the box may be optionally specified with the following syntax: the [<] character, followed by an optional box type indication, then an optional integer offset, and the closing [>] character. Pretty-printing box type is one of [h], [v], [hv], [b], or [hov]. '[h]' stands for an 'horizontal' pretty-printing box, '[v]' stands for a 'vertical' pretty-printing box, '[hv]' stands for an 'horizontal/vertical' pretty-printing box, '[b]' stands for an 'horizontal-or-vertical' pretty-printing box demonstrating indentation, '[hov]' stands a simple 'horizontal-or-vertical' pretty-printing box. For instance, [@\[] opens an 'horizontal-or-vertical' pretty-printing box with indentation 2 as obtained with [open_hovbox 2]. For more details about pretty-printing boxes, see the various box opening functions [open_*box]. - [@\]]: close the most recently opened pretty-printing box. - [@,]: output a 'cut' break hint, as with [print_cut ()]. - [@ ]: output a 'space' break hint, as with [print_space ()]. - [@;]: output a 'full' break hint as with [print_break]. The [nspaces] and [offset] parameters of the break hint may be optionally specified with the following syntax: the [<] character, followed by an integer [nspaces] value, then an integer [offset], and a closing [>] character. If no parameters are provided, the good break defaults to a 'space' break hint. - [@.]: flush the pretty-printer and split the line, as with [print_newline ()]. - [@]: print the following item as if it were of length [n]. Hence, [printf "@<0>%s" arg] prints [arg] as a zero length string. If [@] is not followed by a conversion specification, then the following character of the format is printed as if it were of length [n]. - [@\{]: open a semantic tag. The name of the tag may be optionally specified with the following syntax: the [<] character, followed by an optional string specification, and the closing [>] character. The string specification is any character string that does not contain the closing character ['>']. If omitted, the tag name defaults to the empty string. For more details about semantic tags, see the functions {!open_stag} and {!close_stag}. - [@\}]: close the most recently opened semantic tag. - [@?]: flush the pretty-printer as with [print_flush ()]. This is equivalent to the conversion [%!]. - [@\n]: force a newline, as with [force_newline ()], not the normal way of pretty-printing, you should prefer using break hints inside a vertical pretty-printing box. Note: To prevent the interpretation of a [@] character as a pretty-printing indication, escape it with a [%] character. Old quotation mode [@@] is deprecated since it is not compatible with formatted input interpretation of character ['@']. Example: [printf "@[%s@ %d@]@." "x =" 1] is equivalent to [open_box (); print_string "x ="; print_space (); print_int 1; close_box (); print_newline ()]. It prints [x = 1] within a pretty-printing 'horizontal-or-vertical' box. B :* Same as [fprintf] above, but output on [std_formatter]. 堠 :* Same as [fprintf] above, but output on [err_formatter].  * Same as [printf] above, but instead of printing on a formatter, returns a string containing the result of formatting the arguments. Note that the pretty-printer queue is flushed at the end of {e each call} to [sprintf]. In case of multiple and related calls to [sprintf] to output material on a single string, you should consider using [fprintf] with the predefined formatter [str_formatter] and call [flush_str_formatter ()] to get the final result. Alternatively, you can use [Format.fprintf] with a formatter writing to a buffer of your own: flushing the formatter and the buffer at the end of pretty-printing returns the desired string. ' * Same as [printf] above, but instead of printing on a formatter, returns a string containing the result of formatting the arguments. The type of [asprintf] is general enough to interact nicely with [%a] conversions. @since 4.01.0  * Same as {!fprintf}, except the formatter is the last argument. [dprintf "..." a b c] is a function of type [formatter -> unit] which can be given to a format specifier [%t]. This can be used as a replacement for {!asprintf} to delay formatting decisions. Using the string returned by {!asprintf} in a formatting context forces formatting decisions to be taken in isolation, and the final string may be created prematurely. {!dprintf} allows delay of formatting decisions until the final formatting context is known. For example: {[ let t = Format.dprintf "%i@ %i@ %i" 1 2 3 in ... Format.printf "@[%t@]" t ]} @since 4.08.0 9 * Same as [fprintf] above, but does not print anything. Useful to ignore some material when conditionally printing. @since 3.10.0 Ƞ 0* Formatted Pretty-Printing with continuations.  * Same as [fprintf] above, but instead of returning immediately, passes the formatter to its first argument at the end of printing.  * Same as {!dprintf} above, but instead of returning immediately, passes the suspended printer to its first argument at the end of printing. @since 4.08.0  * Same as [kfprintf] above, but does not print anything. Useful to ignore some material when conditionally printing. @since 3.12.0  砠 c* Same as [sprintf] above, but instead of returning the string, passes it to the first argument.  ] s* Same as [asprintf] above, but instead of returning the string, passes it to the first argument. @since 4.03  Ӡ1* {1 Deprecated}  Š }* @deprecated This function is error prone. Do not use it. This function is neither compositional nor incremental, since it flushes the pretty-printer queue at each call. If you need to print to some buffer [b], you must first define a formatter writing to [b], using [let to_b = formatter_of_buffer b]; then use regular calls to [Format.fprintf] with formatter [to_b].  H '* @deprecated An alias for [ksprintf].  9* @deprecated Subsumed by [set_formatter_out_functions].  9* @deprecated Subsumed by [get_formatter_out_functions].  <* @deprecated Subsumed by [pp_set_formatter_out_functions].  <* @deprecated Subsumed by [pp_get_formatter_out_functions]. 2* {2 String tags}  +* @deprecated Subsumed by {!pp_open_stag}. * (* @deprecated Subsumed by {!open_stag}. ؠ ,* @deprecated Subsumed by {!pp_close_stag}. t )* @deprecated Subsumed by {!close_stag}. " 7* @deprecated Subsumed by {!formatter_stag_functions}.  * This function will erase non-string tag formatting functions. @deprecated Subsumed by {!pp_set_formatter_stag_functions}.  ;* @deprecated Subsumed by {!set_formatter_stag_functions}. C >* @deprecated Subsumed by {!pp_get_formatter_stag_functions}. Ǡ ;* @deprecated Subsumed by {!get_formatter_stag_functions}. ]@T)../ocamlc0-strict-sequence(-absname"-w8+a-4-9-41-42-44-45-48-70"-g+-warn-error"+A*-bin-annot)-nostdlib*-principal,-safe-string/-strict-formats"-w"+A"-w.-fragile-match"-o2stdlib__Format.cmi"-c?]?^ 2/home/barsac/ci/builds/workspace/sanitizers/stdlib @0Sݑ^XSn0?a?`?`?a?a?a?a?a@?_@@8CamlinternalFormatBasics0cEXy$=@<<@22@@rq@@11@~@@**@@&&@++@%%@@@##@&&@3'3&77@@@@@@,a,`==@`p!!==@&&44~9)9(@44;;@((..@@@@  <_<^@00@-5-466@-t-s;*;)@@77~@@*$*#+#+"@99@@ G1066@@"!@55˰==@@@8 8 @|{11@- -005#5"@@%%@;~;}@@@ T S&&++@nm@65''--/m/l@( (33::@,,@zy00@! @3+3*@))@/#/">m>~@@@%L%K::@!!**4@4?@:N:M::@))@//@00@@22@@ o n  ,;sr1c1b@<;@qp$U$T@8~8}@@@ ! @  44@@@@fe$$@FE##@ml7170@<<@@((**@%%@''@&&((,,@99@  @kj<<@((@  @@@88@""@@'&@װ))..