Caml1999I037.T[/*Ast_mapper&mapper;@@)attributea@@@@@@@@@)Parsetree)attribute@@@@@)attribute@@@@@@@6parsing/ast_mapper.mli{ c e{ c @@)C@*attributesb@@@"@@@@@@$listK')attribute@@@@@@@@ 1)attribute@@@@@@@@@@*|  +|  @@RD@*binding_opc@@@K@@@}@@~@J*binding_op@@@@@O*binding_op@@@@@@@G}  H}  @@oE@$cased@@@h@@@v@@w@g$case@@@x@@yl$case@@@z@@{@@|d~  e~  @@F@%casese@@@@@@m@@n@c$case@@@o@@@p@@qm$case@@@r@@@s@@t@@u    H@@G@1class_declarationf@@@@@@f@@g@1class_declaration@@@h@@i1class_declaration@@@j@@k@@l@ I K@ I @@H@1class_descriptiong@@@@@@_@@`@1class_description@@@a@@b1class_description@@@c@@d@@eA  A  @@I@*class_exprh@@@@@@X@@Y@*class_expr@@@Z@@[*class_expr@@@\@@]@@^B  B  @@ J@+class_fieldi@@@@@@Q@@R@+class_field@@@S@@T+class_field@@@U@@V@@WC  C  =@@'K@/class_signaturej@@@ @@@J@@K@/class_signature@@@L@@M$/class_signature@@@N@@O@@PD > @D > ~@@DL@/class_structurek@@@=@@@C@@D@@@?^*class_type@@@@@@A@@BVF  WF  @@~N@6class_type_declarationm@@@w@@@5@@6@v6class_type_declaration@@@7@@8{6class_type_declaration@@@9@@:@@;sG  tH - a@@O@0class_type_fieldn@@@@@@.@@/@0class_type_field@@@0@@10class_type_field@@@2@@3@@4I b dI b @@P@(constanto@@@@@@'@@(@(constant@@@)@@*(constant@@@+@@,@@-J  J  @@Q@7constructor_declarationp@@@@@@ @@!@7constructor_declaration@@@"@@#7constructor_declaration@@@$@@%@@&K  L  E@@R@2directive_argumentq@@@@@@@@@2directive_argument@@@@@2directive_argument@@@@@@@M F HM F @@S@$exprr@@@@@@@@@*expression@@@@@ *expression@@@@@@@N  N  @@,T@)extensions@@@%@@@ @@ @$)extension@@@ @@))extension@@@@@@@!O  "O  @@IU@5extension_constructort@@@B@@@@@@A5extension_constructor@@@@@F5extension_constructor@@@@@ @@ >P  ?Q$V@@fV@3include_declarationu@@@_@@@@@@^3include_declaration@@@@@c3include_declaration@@@@@@@[RWY\RW@@W@3include_descriptionv@@@|@@@@@@{3include_description@@@@@3include_description@@@@@@@xSyS@@X@1label_declarationw@@@@@@@@@1label_declaration@@@@@1label_declaration@@@@@@@TT7@@Y@(location@@@@@@@@@(Location!t@@@@@!t@@@@@@@U8:U8g@@Z@.module_binding@@@@@@@@@.module_binding@@@@@.module_binding@@@@@@@VhjVh@@[@2module_declaration@@@@@@@@@2module_declaration@@@@@2module_declaration@@@@@@@WW@@\@3module_substitution@@@@@@@@@3module_substitution@@@@@3module_substitution@@@@@@@ٰ XX<@@5]@+module_expr@@@.@@@@@@-+module_expr@@@@@2+module_expr@@@@@@@Ұ*Y=?+Y=q@@R^@+module_type@@@K@@@@@@J+module_type@@@@@O+module_type@@@@@@@˰GZrtHZr@@o_@7module_type_declaration@@@h@@@@@@g7module_type_declaration@@@@@l7module_type_declaration@@@@@@@İd[e\@@`@0open_declaration@@@@@@@@@0open_declaration@@@@@0open_declaration@@@@@@@]]^@@a@0open_description@@@@@@@@@0open_description@@@@@0open_description@@@@@@@^_a^_@@b@,package_type@@@@@@@@@,package_type@@@@@,package_type@@@@@@@__@@c@#pat@@@@@@@@@'pattern@@@@@'pattern@@@@@@@``@@d@'payload@@@@@@@@@'payload@@@@@'payload@@@@@@@aa(@@e@)signature@@@@@@@@@)signature@@@@@)signature@@@@@@@b)+b)W@@:f@.signature_item@@@3@@@@@@2.signature_item@@@@@7.signature_item@@@@@@@/cXZ0cX@@Wg@)structure@@@P@@@@@@O)structure@@@@@T)structure@@@@@@@LdMd@@th@.structure_item@@@m@@@@@@l.structure_item@@@@@q.structure_item@@@@@@@ieje@@i@2toplevel_directive@@@@@@x@@y@2toplevel_directive@@@z@@{2toplevel_directive@@@|@@}@@~ffL@@j@/toplevel_phrase@@@@@@q@@r@/toplevel_phrase@@@s@@t/toplevel_phrase@@@u@@v@@wgMOgM@@k@#typ@@@@@@j@@k@)core_type@@@l@@m)core_type@@@n@@o@@phh@@l@0type_declaration@@@@@@c@@d@0type_declaration@@@e@@f0type_declaration@@@g@@h@@iii@@m@.type_extension@@@@@@\@@]@.type_extension@@@^@@_.type_extension@@@`@@a@@bjj8@@"n@.type_exception@@@@@@U@@V@.type_exception@@@W@@X.type_exception@@@Y@@Z@@[k9;k9v@@?o@)type_kind@@@8@@@N@@O@7)type_kind@@@P@@Q<)type_kind@@@R@@S@@T4lwy5lw@@\p@-value_binding@@@U@@@G@@H@T-value_binding@@@I@@JY-value_binding@@@K@@L@@MQmRm@@yq@1value_description@@@r@@@@@@A@q1value_description@@@B@@Cv1value_description@@@D@@E@@Fnnon'@@r@/with_constraint@@@@@@9@@:@/with_constraint@@@;@@</with_constraint@@@=@@>@@?o(*o(h@@s@@@A@@@@@z S Spij@@@@B@A@.default_mapper@@@@v??v?Y@@t@@)tool_name@$unitF@@@@@&stringQ@@@@@@{{@@u@@%apply&source@@@@@&target@@@@@@@@@@@0@@@@@@@@@@@@v@@(run_main@@٠C@@@@@@@@ @@@@@@@Q@@@@@@@@%w@@1register_function&Stdlib#ref@d@@@@@@@ t@@@@@@@@<@@@@@@@@@@@@@@@@@@/SS0S@@Wx@@(register@@@@@@@@4@@@@@@@@f@@@@@@@@@@@@@@@XY@@y@@'map_opt@@!a@@@!b@@@@@@&optionL@@@@@@@@@@@@@G@@z@@2extension_of_error@%error@@@@@)extension@@@@@@III|@@{@@4attribute_of_warning @!t@@@@@@@@@@@)attribute@@@@@@@@ - - - h@@|@@3add_ppx_context_str!)tool_name@@@@@@)structure@@@@@)structure@@@@@@@@!Y!Y!r!@@}@@3add_ppx_context_sig")tool_name=@@@@@@)signature@@@@@)signature@@@@@@@@""""@@'~@@4drop_ppx_context_str#'restore$boolE@@@@@@%)structure@@@@@+)structure@@@@@@@@$##%#8#v@@L@@4drop_ppx_context_sig$'restore%@@@@@@H)signature@@@@@N)signature@@@@@@@@G$$H$($f@@o@@@*set_cookie%@@@@@@@i*expression@@@@@@@@@@@@@f%o%og%o%@@A@@*get_cookie&@@@@@@*expression@@@@@@@@@%%%%@@B@@@q_b*Ast_mapper0N lA^gI(Warnings0Ef{&-Stdlib__Uchar0=H^V9>ɠ+Stdlib__Sys0b'8=OIn+Stdlib__Seq0?72#[O.Stdlib__Lexing0^m|e,Stdlib__Lazy0$1mlࠠ.Stdlib__Format00FClW.Stdlib__Either0HD ?|>.Stdlib__Domain0'Ϳo\0m.K.Stdlib__Buffer0,I[?z&Stdlib0t0VoS%{<F:)Parsetree0v o[pY Y)Longident0wP q;ɡ(Location0nBɊOn?7~ؠ*Format_doc0uy@GmWUࠠ0CamlinternalLazy0zY# #4#-8CamlinternalFormatBasics0|.e1R$|o(Asttypes0eT$BbRM dc@@@Caml1999T037k+cC*Ast_mapper*ocaml.text&_none_@@A  The interface of a -ppx rewriter A -ppx rewriter is a program that accepts a serialized abstract syntax tree and outputs another, possibly modified, abstract syntax tree. This module encapsulates the interface between the compiler and the -ppx rewriters, handling such details as the serialization format, forwarding of command-line flags, and storing state. {!mapper} enables AST rewriting using open recursion. A typical mapper would be based on {!default_mapper}, a deep identity mapper, and will fall back on it for handling the syntax it does not modify. For example: {[ open Asttypes open Parsetree open Ast_mapper let test_mapper argv = { default_mapper with expr = fun mapper expr -> match expr with | { pexp_desc = Pexp_extension ({ txt = "test" }, PStr [])} -> Ast_helper.Exp.constant (Pconst_integer ("42", None)) | other -> default_mapper.expr mapper other; } let () = register "ppx_test" test_mapper]} This -ppx rewriter, which replaces [[%test]] in expressions with the constant [42], can be compiled using [ocamlc -o ppx_test -I +compiler-libs ocamlcommon.cma ppx_test.ml]. {b Warning:} this module is unstable and part of {{!Compiler_libs}compiler-libs}. 6parsing/ast_mapper.mliP77t  @@@@@@3@@@@@@#intA;@@#intA@@@@@;@A@$charB;@@$charA@@@@@A@A@&stringQ;@@&stringA@@@@@G@@@%bytesC;@@%bytesA@@@@@M@@@%floatD;@@%floatA@@@@@S@@@$boolE;@@%falsec@@]@$trued@@c@@@A@@@@@d@A@$unitF;@@"()e@@n@@@A@@@@@o@A@ #exnG;@@@A@@@@@s@@@#effH;@@O@A@A@@@@@@|@@@,continuationI;@@Q@@P@B,continuationA@nY@@@@@@@@@%arrayJ;@@R@A%arrayA@@@@@@@@@ $listK;@@S@A"[]f@@@"::g@@@T@@@ @@A@Y@@@@@@@@&optionL;@@V@A$Noneh@@@$Somei@@@@@A@Y@@@@@@@@)nativeintM;@@)nativeintA@@@@@@@@%int32N;@@%int32A@@@@@@@@%int64O;@@%int64A@@@@@@@@&lazy_tP;@@X@A&lazy_tA@Y@@@@@@@@ 5extension_constructorR;@@5extension_constructorA@@@@@@@@*floatarrayS;@@*floatarrayA@@@@@@@@&iarrayT;@@Y@A&iarrayA@Y@@@@@@@@ *atomic_locU;@@Z@A*atomic_locA@@@@@@ @@@ .Assert_failure`#@@@@@J@@@@@@@@[@@A!=ocaml.warn_on_literal_pattern%@&@0Division_by_zero]#@@@A+ . .@+End_of_file\#$@@@A366@'FailureY#,@'@@A<??@0Invalid_argumentX#5@0@@AE$H#H@-Match_failureV#>@@=@9@;@@a@@AV5Y4Y@)Not_foundZ#O@@@A^=a<a@-Out_of_memoryW#W@@@AfEiDi@.Stack_overflow^#_@@@AnMqLq@.Sys_blocked_io_#g@@@AvUyTy@)Sys_error[#o@j@@A^]@:Undefined_recursive_modulea#x@@w@s@u@@h@@Aon@:Continuation_already_takenb#@@@Awv@&Stdlib@Aࠐ)Parsetree)Parsetreev  !v  *@@A3@ @Av  @@@ {1 A generic Parsetree mapper} x , ,x , Q@@@@@@A+&mapper`Az S Xz S ^@@;@@)attributea@@@@@@ @@ @?)attribute@@@ @@ D)attribute@@@ @@ @@ { c e{ c @@C@*attributesb@@@1@@@ @@ @ia)attribute@@@ @@@ @@ sk)attribute@@@ @@@ @@ @@ |  |  @@D@*binding_opc@@@Y@@@ @@ @*binding_op@@@ @@ *binding_op@@@ @@ @@ $}  %}  @@=E@$cased@@@w@@@ @@ @$case@@@ @@ $case@@@ @@ @@ B~  C~  @@[F@%casese@@@@@@ @@ @͠$case@@@ @@@ @@ נ$case@@@ @@@ @@ @@ j  k  H@@G@1class_declarationf@@@@@@ @@ @1class_declaration@@@ @@ 1class_declaration@@@ @@ @@ @ I K@ I @@H@1class_descriptiong@@@@@@ @@ #@1class_description@@@ @@ ! 1class_description@@@ @@ "@@ $A  A  @@I@*class_exprh@@@@@@ '@@ ,@%*class_expr@@@ (@@ ***class_expr@@@ )@@ +@@ -B  B  @@J@+class_fieldi@@@@@@ 0@@ 5@C+class_field@@@ 1@@ 3H+class_field@@@ 2@@ 4@@ 6C  C  =@@K@/class_signaturej@@@5@@@ 9@@ >@a/class_signature@@@ :@@ <f/class_signature@@@ ;@@ =@@ ?D > @D > ~@@L@/class_structurek@@@S@@@ B@@ G@/class_structure@@@ C@@ E/class_structure@@@ D@@ F@@ HE  E  @@7M@*class_typel@@@q@@@ K@@ P@*class_type@@@ L@@ N*class_type@@@ M@@ O@@ Q<F  =F  @@UN@6class_type_declarationm@@@@@@ T@@ Y@6class_type_declaration@@@ U@@ W6class_type_declaration@@@ V@@ X@@ ZZG  [H - a@@sO@0class_type_fieldn@@@@@@ ]@@ b@0class_type_field@@@ ^@@ `0class_type_field@@@ _@@ a@@ cxI b dyI b @@P@(constanto@@@@@@ f@@ k@(constant@@@ g@@ i(constant@@@ h@@ j@@ lJ  J  @@Q@7constructor_declarationp@@@@@@ o@@ t@7constructor_declaration@@@ p@@ r7constructor_declaration@@@ q@@ s@@ uK  L  E@@R@2directive_argumentq@@@@@@ x@@ }@32directive_argument@@@ y@@ {82directive_argument@@@ z@@ |@@ ~M F HM F @@S@$exprr@@@%@@@ @@ @Q*expression@@@ @@ V*expression@@@ @@ @@ N  N  @@ T@)extensions@@@C@@@ @@ @o)extension@@@ @@ t)extension@@@ @@ @@ O  O  @@'U@5extension_constructort@@@a@@@ @@ @5extension_constructor@@@ @@ 5extension_constructor@@@ @@ @@ ,P  -Q$V@@EV@3include_declarationu@@@@@@ @@ @3include_declaration@@@ @@ 3include_declaration@@@ @@ @@ JRWYKRW@@cW@3include_descriptionv@@@@@@ @@ @3include_description@@@ @@ 3include_description@@@ @@ @@ hSiS@@X@1label_declarationw@@@@@@ @@ @1label_declaration@@@ @@ 1label_declaration@@@ @@ @@ TT7@@Y@(location@@@@@@ @@@(Location!t@@@@@!t@@@@@@@U8:U8g@@Z@.module_binding@@@@@@!@@&@'.module_binding@@@"@@$,.module_binding@@@#@@%@@'VhjVh@@[@2module_declaration@@@@@@*@@/@E2module_declaration@@@+@@-J2module_declaration@@@,@@.@@0WW@@\@3module_substitution@@@7@@@3@@8@c3module_substitution@@@4@@6h3module_substitution@@@5@@7@@9XX<@@]@+module_expr@@@U@@@<@@A@+module_expr@@@=@@?+module_expr@@@>@@@@@B Y=?!Y=q@@9^@+module_type@@@s@@@E@@J@+module_type@@@F@@H+module_type@@@G@@I@@K>Zrt?Zr@@W_@7module_type_declaration@@@@@@N@@S@7module_type_declaration@@@O@@Q7module_type_declaration@@@P@@R@@T\[]\@@u`@0open_declaration@@@@@@W@@\@0open_declaration@@@X@@Z0open_declaration@@@Y@@[@@]z]{]^@@a@0open_description@@@@@@`@@e@0open_description@@@a@@c0open_description@@@b@@d@@f^_a^_@@b@,package_type@@@@@@i@@n@,package_type@@@j@@l,package_type@@@k@@m@@o__@@c@#pat@@@ @@@r@@w@5'pattern@@@s@@u:'pattern@@@t@@v@@x``@@d@'payload@@@'@@@{@@@S'payload@@@|@@~X'payload@@@}@@@@aa(@@ e@)signature@@@E@@@@@@q)signature@@@@@v)signature@@@@@@@b)+b)W@@)f@.signature_item@@@c@@@@@@.signature_item@@@@@.signature_item@@@@@@@.cXZ/cX@@Gg@)structure@@@@@@@@@)structure@@@@@)structure@@@@@@@LdMd@@eh@.structure_item@@@@@@@@@.structure_item@@@@@.structure_item@@@@@@@jeke@@i@2toplevel_directive@@@@@@@@@2toplevel_directive@@@@@2toplevel_directive@@@@@@@ffL@@j@/toplevel_phrase@@@@@@@@@/toplevel_phrase@@@@@ /toplevel_phrase@@@@@@@gMOgM@@k@#typ@@@@@@@@@%)core_type@@@@@*)core_type@@@@@@@hh@@l@0type_declaration@@@@@@@@@C0type_declaration@@@@@H0type_declaration@@@@@@@ɰii@@m@.type_extension@@@5@@@@@@a.type_extension@@@@@f.type_extension@@@@@@@Ұjj8@@n@.type_exception@@@S@@@@@@.type_exception@@@@@.type_exception@@@@@@@۰k9;k9v@@7o@)type_kind@@@q@@@@@@)type_kind@@@@@)type_kind@@@@@@@<lwy=lw@@Up@-value_binding@@@@@@@@@-value_binding@@@@@-value_binding@@@@@@@Zm[m@@sq@1value_description@@@@@@@@@1value_description@@@@@1value_description@@@@@@@xnyn'@@r@/with_constraint@@@@@@@@@/with_constraint@@@@@/with_constraint@@@@@@@o(*o(h@@s@@@A@@@@@z S Spij@)ocaml.doc A mapper record implements one "method" per syntactic category, using an open recursion style: each method takes as its first argument the mapper to be applied to children in the syntax tree. qkkt1=@@@@@@@@@B@@#{ c n@@@Ш@б@г점&mapper{ c p{ c v@@3@ ;@@@A@@@@@*'@@@A@@б@г{ c z{ c @@@@г{ c { c @@@@ @@@@@@ @@#|  @@@Ш@б@г&mapper|  |  @@,@@б@г$list|  |  @г|  |  @@ ?@@@@ @@г$list|  |  @г  |  |  @@Q@@@R @@%S @@.T+ @@1@@ W@@#  }  @@@Ш@б@г&mapper%}  &}  @@h@@б@г/}  0}  @@r@@г7}  8}  @@z@@%{ @@.|@@1@@ @@#B~  @@@Ш@б@г&mapperM~  N~  @@ @@б@гW~  X~  @@"@@г_~  `~  @@%@@/ @@8@@;@@ @%@#!!j  %@@@Ш@б@г"&mapperu  'v  -@@*@@б@г%$list  6  :@г*+  1  5@@1˰@@@6̰ @@г-$list  C  G@г23  >  B@@9ݰ@@@>ް @@M߰ @@V+ @@Y@@ @9@#55@ I \@@@Ш@б@г6&mapper@ I ^@ I d@@>@@б@г9:@ I h@ I y@@@@@г<=@ I }@ I @@C@@M @@V@@Y@@  @C@#??(A  @'@@Ш@б@г@&mapperA  A  @@H@@б@гCDA  A  @@J&@@гFGA  A  @@M.@@W/ @@`0@@c@@ %3@M@#II2B  @1@@Ш@б@гJ&mapper B   B  @@RD@@б@гMN B   B  @@TN@@гPQ B   B  @@WV@@aW @@jX@@m@@ .[@W@#SS< C  @;@@Ш@б@гT&mapper )C   *C  @@\l@@б@гWX 3C  " 4C  -@@^v@@гZ[ ;C  1 <C  <@@a~@@k @@t@@w@@ 7@a@#]]F FD > O@E@@Ш@б@г^&mapper QD > Q RD > W@@f@@б@гab [D > [ \D > j@@h@@гde cD > n dD > }@@k@@u @@~@@@@ @@k@#ggP nE  @O@@Ш@б@гh&mapper yE   zE  @@p@@б@гkl E   E  @@rư@@гno E   E  @@uΰ@@ϰ @@а@@@@ I@u@#qqZ F  @Y@@Ш@б@гr&mapper F   F  @@z@@б@гuv F   F  @@|@@гxy F   F  @@@@ @@@@@@ R@@#{{d G  @c@@Ш@б@г|&mapper G   G  @@ @@б@г G   G  ,@@@@г H - J H - `@@@@ @@ @@@@ [#@@#n I b t@m@@Ш@б@г&mapper I b v I b |@@4@@б@г I b  I b @@>@@г I b  I b @@F@@G @@H@@@@ dK@@#x J  @w@@Ш@б@г&mapper J   J  @@\@@б@г #J   $J  @@f@@г +J   ,J  @@n@@o @@p@@@@ ms@@# 6K  @@@Ш@б@г&mapper AK   BK  @@@@б@г KK   LK  @@@@г SL  - TL  D@@@@ @@@@@@ v@@# ^M F Z@@@Ш@б@г&mapper iM F \ jM F b@@@@б@г sM F f tM F x@@@@г {M F | |M F @@@@ @@@@@@ @@# N  @@@Ш@б@г&mapper N   N  @@԰@@б@г N   N  @@ް@@г N   N  @@@@ @@@@@@ @@# O  @@@Ш@б@г&mapper O   O  @@@@б@г O   O  @@@@г O   O  @@@@ @@@@@@ @@# P @@@Ш@б@г &mapper P  P  @@$@@б@гŠư P  P #@@.@@гȠɰ Q$@ Q$U@@6@@7 @@8@@@@ ;@@#ˠ˰ RWl@@@Ш@б@г̠&mapper RWn RWt@@L@@б@гϠа RWx RW@@V@@гҠӰ RW RW@@^@@_ @@`@@@@ c@@#ՠհ &S@@@Ш@б@г֠&mapper 1S 2S@@t@@б@г٠ڰ ;S <S@@~@@гܠݰ CS DS@@@@ @@@@@@ @@#ߠ߰ NT@@@Ш@б@гࠐ&mapper YT ZT @@@@б@г㠐 cT dT!@@@@г栐 kT% lT6@@@@ @@@@@@ @@# vU8B@@@Ш@б@гꠐ&mapper U8D U8J@@İ@@б@г(Location U8N U8V@ U8W U8X@@@ְ@@г(Location U8\ U8d@ U8e U8f@@@@@@@'@@@@@@# Vhx@@@Ш@б@г&mapper Vhz Vh@@@@б@г Vh Vh@@ @@г Vh Vh@@ @@ @@ @@#@@(@ @#   W@@@Ш@б@г &mapper W W@@$@@б@г  W W@@.@@г W W@@6@@!7 @@*8@@-@@1;@@# X@@@Ш@б@г&mapper X X @@L@@б@г X X$@@V@@г X( X;@@!^@@+_ @@4`@@7@@:c@!@# &Y=J@@@Ш@б@г&mapper 1Y=L 2Y=R@@&t@@б@г!" ;Y=V <Y=a@@(~@@г$% CY=e DY=p@@+@@5 @@>@@A@@C@+@#'' NZr@@@Ш@б@г(&mapper YZr ZZr@@0@@б@г+, cZr dZr@@2@@г./ kZr lZr@@5@@? @@H@@K@@L@5@#11 v[@@@Ш@б@г2&mapper [ [@@:İ@@б@г56 [ [@@<ΰ@@г89 \ \@@?ְ@@Iװ @@Rذ@@U@@U@?@#;;$ ]-@#@@Ш@б@г<&mapper ]/ ]5@@D@@б@г?@ ]9 ]I@@F@@гBC ]M ]]@@I@@S @@\@@_@@^@I@#EE. ^_q@-@@Ш@б@гF&mapper ^_s ^_y@@N@@б@гIJ ^_} ^_@@P@@гLM ^_ ^_@@S&@@]' @@f(@@i@@g+@S@#OO8 _@7@@Ш@б@гP&mapper _ _@@X<@@б@гST _ _@@ZF@@гVW _ _@@]N@@gO @@pP@@s@@pS@]@#YYB `@A@@Ш@б@гZ&mapper !` "`@@bd@@б@г]^ +` ,`@@dn@@г`a 3` 4`@@gv@@qw @@zx@@}@@y{@g@#ccL >a @K@@Ш@б@гd&mapper Ia  Ja@@l@@б@гgh Sa Ta@@n@@гjk [a  \a'@@q@@{ @@@@@@@q@#mmV fb)4@U@@Ш@б@гn&mapper qb)6 rb)<@@v@@б@гqr {b)@ |b)I@@x@@гtu b)M b)V@@{ư@@ǰ @@Ȱ@@@@@{@#ww` cXh@_@@Ш@б@гx&mapper cXj cXp@@ܰ@@б@г{| cXt cX@@@@г~ cX cX@@@@ @@@@@@@@#j d@i@@Ш@б@г&mapper d d@@@@б@г d d@@@@г d d@@@@ @@@@@@@@#t e@s@@Ш@б@г&mapper e e@@,@@б@г e e@@6@@г e e@@>@@? @@@@@@@C@@#~f@}@@Ш@б@г&mapperff@@T@@б@гf#f5@@^@@г#f9$fK@@f@@g @@h@@@@k@@#.gM^@@@Ш@б@г&mapper9gM`:gMf@@|@@б@гCgMjDgMy@@@@гKgM}LgM@@@@ @@@@@@@@#Vh@@@Ш@б@г&mapperahbh@@@@б@гkhlh@@@@гshth@@@@ @@@@@@@@#~i@@@Ш@б@г&mapperii@@̰@@б@гii@@ְ@@гii@@ް@@߰ @@@@@@@@#j @@@Ш@б@г&mapperj j@@@@б@г°jj%@@@@гĠŰj)j7@@@@ @@@@@@ @@#Ǡǰk9I@@@Ш@б@гȠ&mapperk9Kk9Q@@@@б@гˠ̰k9Uk9c@@&@@гΠϰk9gk9u@@.@@/ @@0@@@@3@@#ѠѰlw@@@Ш@б@гҠ&mapperlwlw@@D@@б@гՠְ lw lw@@N@@гؠٰlwlw@@V@@W @@X@@@@[@@#۠۰m@@@Ш@б@гܠ&mapper)m*m@@l@@б@гߠ3m4m@@v@@г⠐;m<m@@~@@ @@@@@@@@#Fn@@@Ш@б@г栐&mapperQnRn@@@@б@г預[n\n@@@@г점cndn&@@@@ @@@@ @@@@#no(9@@@Ш@б@г&mapperyo(;zo(A@@@@б@гo(Eo(T@@ư@@гo(Xo(g@@ΰ@@ϰ @@а@@@@@@@A@@@@@@@@ @.default_mapperv?Cv?Q@г &mapperv?Sv?Y@@ @@@3@  @A@@@v?? @ ? A default mapper, which implements a "deep identity" mapping. wZZwZ@@@@@@@t@@@.ڐ@@@@@@!琠 ( {1 Apply mappers to compilation units} yy@@@@@@3@3F1@A)tool_name {{@б@г$unit{{@@ @@@@@гϠ&string{ {@@ @@@'@@@@@@@, @@@{ @z  Can be used within a ppx preprocessor to know which tool is calling it ["ocamlc"], ["ocamlopt"], ["ocamldoc"], ["ocamldep"], ["ocaml"], ... Some global variables that reflect command-line options are automatically synchronized between the calling tool and the ppx preprocessor: {!Clflags.include_dirs}, {!Clflags.hidden_include_dirs}, {!Load_path}, {!Clflags.open_modules}, {!Clflags.for_package}, {!Clflags.debug}. "|#|@@@@@@@;u@@@6@@@@@@K%apply 9:@б&sourceг &stringFG@@ @@@3HGGHHHHH@fa:@A@@б&targetг &stringYZ@@ @@@@@б@г&mapperhi@@ @@@"@@г$unituv@@ @@@/@@@@@@@4 @@2)@@ @@9@@KB@@ @@?@@@@󐠠 Apply a mapper (parametrized by the unit name) to a dumped parsetree found in the [source] file and put the result in the [target] file. The [structure] or [signature] field of the mapper is applied to the implementation or interface. @@@@@@@v@@)@ @@@@@@_(run_main @б@б@г0$list@г&string@@ @@@3@D@A@@@ @@@ @@г&mapper @@ @@@@@@@@ @@  @@г$unit@@ @@@ &@@@@@ @@ + @@@@ b  Entry point to call to implement a standalone -ppx rewriter from a mapper, parametrized by the command line arguments. The current unit name can be obtained from {!Location.input_name}. This function implements proper error reporting for uncaught exceptions.   "4@@@@@@@#w@@@ r@@@@@@K,+6 {1 Registration API} (66)6Q@@@@@@3'&&'''''@]~1@A1register_function 4SW5Sh@г#ref=S>S@б@г&stringISkJSq@@ @@@$@@б@б@гˠ$listZS}[S@г+&stringdSveS|@@ @@@?@@@@@@D @@г&mappervSwS@@ @@@Q@@@@@@@V @@г,$unitSS@@ @@@c@@@@@@@hSu @@@M@@ @@nP@@@c@@@sSja@@@SSd@@x@@f@@z(register @б@г~&string@@ @@@3@@A@@б@б@г;$list@г&string@@ @@@@@@@@@" @@г'&mapper@@ @@@ /@@@@@!@@"4 @@г$unit@@ @@@#A@@@@@$@@%F @@@O@@& @@'LR@@@ @ p  Apply the [register_function]. The default behavior is to run the mapper immediately, taking arguments from the process command line. This is to support a scenario where a mapper is linked as a stand-alone executable. It is possible to overwrite the [register_function] to define "-ppx drivers", which combine several mappers in a single process. Typically, a driver starts by defining [register_function] to a custom implementation, then lets ppx rewriters (linked statically or dynamically) register themselves, and then run all or some of them. It is also possible to have -ppx drivers apply rewriters to only specific parts of an AST. The first argument to [register] is a symbolic name to be used by the ppx driver. @@@@@@@1y@@#@ ,@@@@@@k:9 , {1 Convenience functions to write mappers} 67@@@@@@354455555@}1@A'map_optBC!@б@б@А!a@5B@(Q$R&@@А!b@7B@)#\*],@@@@@* @@+*@@б@г&optionl4m:@А!a':s1t3@@@-@@@-A @@гՠ&optionAG@А!b1O>@@@@7@@@/V @@@@@0 @@1[!@@@:@@2 @@3`#@@@@@z@@@@g2extension_of_errorIMI_@б@г%error(LocationIaIi@ IjIo@@@@@@83@(@A @@г/)extensionIsI|@@ @@@9@@@@@:@@; @@@II @ < Encode an error into an 'ocaml.error' extension node which can be inserted in a generated Parsetree. The compiler will be responsible for reporting the error. }}  +@@@@@@@{@@@ L@@@@@@34attribute_of_warning - 1 - E@б@гf!t(Location  - G  - O@  - P - Q@@@@@@<3@UsA@A @@б@г砐&string  - U! - [@@ @@@=@@г)attribute- - _. - h@@ @@@>@@@@@?@@@# @@@+@@A @@B(3@@@? - -@ Encode a warning message into an 'ocaml.ppwarning' attribute which can be inserted in a generated Parsetree. The compiler will be responsible for reporting the warning. L i iM !!@@@@@@@e|@@"@ `@@@@@@Gnm / {1 Helper functions to call external mappers} j!#!#k!#!W@@@@@@3ihhiiiii@Yw1@A3add_ppx_context_strv!Y!]w!Y!p@б)tool_nameгJ&string!r!!r!@@ @@@C@@б@г)structure)Parsetree!r!!r!@ !r!!r!@@@@@@D4 @@г )structure)Parsetree!r!!r!@ !r!!r!@@@@@@EJ @@@@@F@@GO& @@D;@@H @@IT!r!v@@@!Y!Y@ ) Extract information from the current environment and encode it into an attribute which is prepended to the list of structure items in order to pass the information to an external processor. !!"t"@@@@@@@}@@$@ 9吠@@@@@@t3add_ppx_context_sig""""@б)tool_nameг&string""""@@ @@@J3@:@A@@б@гk)signature)Parsetree "" ""@ """"@@@@@@K @@г)signature)Parsetree ""!""@ $""%""@@@@@@L0 @@@@@M@@N5& @@F=@@O @@P:5""@@@8""@ 4 Same as [add_ppx_context_str], but for signatures. E""F"#@@@@@@@^~@@$@ Y@@@@@@Z4drop_ppx_context_str\##"]##6@б'restoreг$booli#8#Dj#8#H@@ @@@Q3kjjkkkkk@u:@A@@б@г)structure)Parsetree~#8#L#8#U@ #8#V#8#_@@@@@@R @@г)structure)Parsetree#8#c#8#l@ #8#m#8#v@@@@@@S0 @@@@@T@@U5& @@F=@@V @@W:#8#<@@@##@  Drop the ocaml.ppx.context attribute from a structure. If [restore] is true, also restore the associated data in the current process. #w#w#$ @@@@@@@@@$@ !͐@@@@@@Z4drop_ppx_context_sig$$$$&@б'restoreг$bool$($4$($8@@ @@@X3@u:@A@@б@гS)signature)Parsetree$($<$($E@ $($F$($O@@@@@@Y @@гi)signature)Parsetree$($S $($\@  $($] $($f@@@@@@Z0 @@@@@[@@\5& @@F=@@] @@^:$($,@@@ $$@ 5 Same as [drop_ppx_context_str], but for signatures. -$g$g.$g$@@@@@@@F@@@$@ A@@@@@@ZON- {1 Cookies} K$$L$$@@@@@@3JIIJJJJJ@l1@Aba Cookies are used to pass information from a ppx processor to a further invocation of itself, when called from the OCaml toplevel (or other tools that support cookies). ^$$_%7%m@@@@@@*set_cookieh%o%si%o%}@б@г:&strings%o%t%o%@@ @@@_+@@б@г*expression)Parsetree%o%%o%@ %o%%o%@@@@@@`C @@г<$unit%o%%o%@@ @@@aP@@@@@b@@cU @@@2@@d @@eZ5@@@%o%o@@A@@@@`*get_cookie%%%%@б@г&string%%%%@@ @@@f3@yc@A@@г#&option%%%%@г>*expression)Parsetree%%%%@ %%%%@@@@@@g" @@@ @@@i'@@@/@@j @@k,2"@@@%%%@@ B@@'@@2@>8A@YD@@s@S@d@]@m@f4@@K@+@g@G@m@f%@@3@Sh'@A@ H************************************************************************A@@A@L@ H #BMM$BM@ H OCaml )C*C@ H /D0D3@ H Alain Frisch, LexiFi 5E446E4@ H ;F match expr with | { pexp_desc = Pexp_extension ({ txt = "test" }, PStr [])} -> Ast_helper.Exp.constant (Pconst_integer ("42", None)) | other -> default_mapper.expr mapper other; } let () = register "ppx_test" test_mapper]} This -ppx rewriter, which replaces [[%test]] in expressions with the constant [42], can be compiled using [ocamlc -o ppx_test -I +compiler-libs ocamlcommon.cma ppx_test.ml]. {b Warning:} this module is unstable and part of {{!Compiler_libs}compiler-libs}. q !* {1 A generic Parsetree mapper}  * A mapper record implements one "method" per syntactic category, using an open recursion style: each method takes as its first argument the mapper to be applied to children in the syntax tree. ͠ @* A default mapper, which implements a "deep identity" mapping.  )* {1 Apply mappers to compilation units}  * Can be used within a ppx preprocessor to know which tool is calling it ["ocamlc"], ["ocamlopt"], ["ocamldoc"], ["ocamldep"], ["ocaml"], ... Some global variables that reflect command-line options are automatically synchronized between the calling tool and the ppx preprocessor: {!Clflags.include_dirs}, {!Clflags.hidden_include_dirs}, {!Load_path}, {!Clflags.open_modules}, {!Clflags.for_package}, {!Clflags.debug}. ^ * Apply a mapper (parametrized by the unit name) to a dumped parsetree found in the [source] file and put the result in the [target] file. The [structure] or [signature] field of the mapper is applied to the implementation or interface. 蠠 * Entry point to call to implement a standalone -ppx rewriter from a mapper, parametrized by the command line arguments. The current unit name can be obtained from {!Location.input_name}. This function implements proper error reporting for uncaught exceptions. |7* {1 Registration API} a  * Apply the [register_function]. The default behavior is to run the mapper immediately, taking arguments from the process command line. This is to support a scenario where a mapper is linked as a stand-alone executable. It is possible to overwrite the [register_function] to define "-ppx drivers", which combine several mappers in a single process. Typically, a driver starts by defining [register_function] to a custom implementation, then lets ppx rewriters (linked statically or dynamically) register themselves, and then run all or some of them. It is also possible to have -ppx drivers apply rewriters to only specific parts of an AST. The first argument to [register] is a symbolic name to be used by the ppx driver. t -* {1 Convenience functions to write mappers} Y * Encode an error into an 'ocaml.error' extension node which can be inserted in a generated Parsetree. The compiler will be responsible for reporting the error.  * Encode a warning message into an 'ocaml.ppwarning' attribute which can be inserted in a generated Parsetree. The compiler will be responsible for reporting the warning. I 0* {1 Helper functions to call external mappers} . * Extract information from the current environment and encode it into an attribute which is prepended to the list of structure items in order to pass the information to an external processor. ʠ 5* Same as [add_ppx_context_str], but for signatures. Y * Drop the ocaml.ppx.context attribute from a structure. If [restore] is true, also restore the associated data in the current process. 蠠 6* Same as [drop_ppx_context_str], but for signatures. w.* {1 Cookies} \ * Cookies are used to pass information from a ppx processor to a further invocation of itself, when called from the OCaml toplevel (or other tools that support cookies). L@-./boot/ocamlc)-nostdlib"-I&./boot*-use-prims2runtime/primitives"-g0-strict-sequence*-principal(-absname"-w8+a-4-9-40-41-42-44-45-48+-warn-error"+a*-bin-annot/-strict-formats"-I'parsing"-I%utils"-I'parsing"-I&typing"-I(bytecomp"-I,file_formats"-I&lambda"-I*middle_end"-I2middle_end/closure"-I2middle_end/flambda"-I=middle_end/flambda/base_types"-I'asmcomp"-I&driver"-I(toplevel"-I%tools"-I'runtime"-I1otherlibs/dynlink"-I-otherlibs/str"-I4otherlibs/systhreads"-I.otherlibs/unix"-I8otherlibs/runtime_events"-c S/home/teraram/ci/builds/workspace/parallel-build/flambda/true/label/ocaml-manycores >10/.-,+*)('&%$#"! @@0%P^]J~O(33@@@0N lA^gI(Asttypes0eT$BbRM dc8CamlinternalFormatBasics0|.e1R$|o0CamlinternalLazy0zY# #4#-*Format_doc0uy@GmWUࠠ(Location0nBɊOn?7~ؠ)Longident0wP q;ɡ0v o[pY Y&Stdlib0t0VoS%{<F:.Stdlib__Buffer0,I[?z.Stdlib__Domain0'Ϳo\0m.K.Stdlib__Either0HD ?|>.Stdlib__Format00FClW,Stdlib__Lazy0$1mlࠠ.Stdlib__Lexing0^m|e+Stdlib__Seq0?72#[O+Stdlib__Sys0b'8=OIn-Stdlib__Uchar0=H^V9>ɠ(Warnings0Ef{&@0N lA^gIAAa k@ E%+@Õ@ @ΰ ?@~İ @S@@-  @@@N@? 5@@@@q @ 3@ @Bk@ @@o%@S Q@Sg @ 7@E@O @={@G @ݐ@@@yӕ @@ =) g@ߕ Y@@@@gyŰ? @ @%S@@e@ߕ I;#@@[ @@@@@Օ  @2  '%@8kq@@i@@@3 @ @@ǐ;K @i K@@P@@