Caml1999I031%>IK7*Ast_mapper&mapper8@@)attributeS@@ @@@@)Parsetree)attribute@@@)attribute@@@@@@@6parsing/ast_mapper.mli{ T V{ T @@%A*attributesT@@@@@@$listI#)attribute@@@@@@ -)attribute@@@@@@@@@@&|  '|  @@JB*binding_opU@@C@@@@B*binding_op@@@G*binding_op@@@@@@@?}  @}  @@cC$caseV@@\@@@@[$case@@@`$case@@@@@@@X~  Y~  @@|D%casesW@@u@@@@Wx$case@@@@@@a$case@@@@@@@@@@{  |  9@@E1class_declarationX@@@@@@1class_declaration@@@1class_declaration@@@@@@@@ : <@ : @@F1class_descriptionY@@@@@@1class_description@@@1class_description@@@@@@@A  A  @@G*class_exprZ@@@@@@*class_expr@@@*class_expr@@@@@@@B  B  @@H+class_field[@@@@@@+class_field@@@+class_field@@@@@@@C  C  .@@I/class_signature\@@@@@{@/class_signature@@@|/class_signature@@@}@@~@@D / 1D / o@@J/class_structure]@@@@@v@/class_structure@@@w/class_structure@@@x@@y@@zE p rE p @@5K*class_type^@@.@@@q@-*class_type@@@r2*class_type@@@s@@t@@u*F  +F  @@NL6class_type_declaration_@@G@@@l@F6class_type_declaration@@@mK6class_type_declaration@@@n@@o@@pCG  DH  R@@gM0class_type_field`@@`@@@g@_0class_type_field@@@hd0class_type_field@@@i@@j@@k\I S U]I S @@N(constanta@@y@@@b@x(constant@@@c}(constant@@@d@@e@@fuJ  vJ  @@O7constructor_declarationb@@@@@]@7constructor_declaration@@@^7constructor_declaration@@@_@@`@@aK  L  6@@P$exprc@@@@@X@*expression@@@Y*expression@@@Z@@[@@\M 7 9M 7 b@@Q)extensiond@@@@@S@)extension@@@T)extension@@@U@@V@@WN c eN c @@R5extension_constructore@@@@@N@5extension_constructor@@@O5extension_constructor@@@P@@Q@@RO  P  @@S3include_declarationf@@@@@I@3include_declaration@@@J3include_declaration@@@K@@L@@MQ Q J@@T3include_descriptiong@@@@@D@3include_description@@@E3include_description@@@F@@G@@H RKM RK@@/U1label_declarationh@@(@@@?@'1label_declaration@@@@,1label_declaration@@@A@@B@@C$S%S@@HV(location@@A@@@:@(Location!t@@@;!t@@@<@@=@@>ATBT@@eW.module_binding@@^@@@5@].module_binding@@@6b.module_binding@@@7@@8@@9ZU[UL@@~X2module_declaration@@w@@@0@v2module_declaration@@@1{2module_declaration@@@2@@3@@4sVMOtVM@@Y3module_substitution@@@@@+@3module_substitution@@@,3module_substitution@@@-@@.@@/WW@@Z+module_expr@@@@@&@+module_expr@@@'+module_expr@@@(@@)@@*XX@@[+module_type@@@@@!@+module_type@@@"+module_type@@@#@@$@@%YYM@@\7module_type_declaration@@@@@@7module_type_declaration@@@7module_type_declaration@@@@@@@ ZNP[@@]0open_declaration@@@@@@0open_declaration@@@0open_declaration@@@@@@@\\@@^0open_description@@ @@@@ 0open_description@@@0open_description@@@@@@@ ] ]I@@-_#pat@@&@@@ @%'pattern@@@*'pattern@@@@@@@"^JL#^Jn@@F`'payload@@?@@@@>'payload@@@ C'payload@@@ @@ @@ ;_oq<_o@@_a)signature@@X@@@@W)signature@@@\)signature@@@@@@@T`U`@@xb.signature_item@@q@@@@p.signature_item@@@u.signature_item@@@@@@@mana@@c)structure@@@@@@)structure@@@)structure@@@@@@@bb3@@d.structure_item@@@@@@.structure_item@@@.structure_item@@@@@@@c46c4q@@e#typ@@@@@@)core_type@@@)core_type@@@@@@@drtdr@@f0type_declaration@@@@@@0type_declaration@@@0type_declaration@@@@@@@ee@@g.type_extension@@@@@@.type_extension@@@.type_extension@@@@@@@ff@@h.type_exception@@@@@@.type_exception@@@ .type_exception@@@@@@@ggZ@@'i)type_kind@@ @@@@)type_kind@@@$)type_kind@@@@@@@߰h[]h[@@@j-value_binding@@9@@@@8-value_binding@@@=-value_binding@@@@@@@ڰ5i6i@@Yk1value_description@@R@@@@Q1value_description@@@V1value_description@@@@@@@հNjOj @@rl/with_constraint@@k@@@@j/with_constraint@@@o/with_constraint@@@@@@@аgk hk L@@m@@A@@@@@kz D DllMN@@@@@A@.default_mapper@@@@wr##xr#=@@n@)tool_name@$unitF@@@&stringO@@@@@@ww@@o@%apply&source@@@&target@@@@@@@*@@@@@@@@@@sss@@p@(run_main@@9@@@@@@@@@@@G@@@@@@@@q@1register_function&Stdlib#ref@X@@@@@ؠd@@@@@@@@@@@r@@@@@@@@@@@]@@r@(register@|@@@@@@@@@@@(@@@@@@@@@@@@@___@@@s@'map_opt@@!a@!b@@@@&optionJ@@@@@@@@@@@?@ @@ct@2extension_of_error@%error@@@])extension@@@@@@U  V @@@yu@4attribute_of_warning@-!t@@@@@@@y)attribute@@@@@@@@qr,@@v@3add_ppx_context_str)tool_name@@@@)structure@@@)structure@@@@@@@@   6 x@@w@3add_ppx_context_sig)tool_name@@@@)signature@@@)signature@@@@@@@@!K!K!d!@@x@4drop_ppx_context_str'restore$boolE@@@@)structure@@@)structure@@@@@@@@!!!":@@y@4drop_ppx_context_sig'restore!@@@@)signature@@@)signature@@@@@@@@"""#*@@z@*set_cookie@r@@@@ *expression@@@@@@@@@@@ $3$3 $3$i@@.{@*get_cookie@@@@**expression@@@@@@@@@$$j$j%$j$@@H|@@P+*Ast_mapper0 cܮN҄n(Warnings0Ӷ.5S6V-Stdlib__Uchar0 |K?bޣ ˠ+Stdlib__Seq0yt\eǟ&Q,}.Stdlib__Lexing0zsc\ZoQ,Stdlib__Lazy0'rruSZY.Stdlib__Format0=z+.m׸.Stdlib__Either0 }rCT0J){9).Stdlib__Buffer0'ON͋[h#ڗA&Stdlib0>,W:()Parsetree03p雲Ҳ$)Longident0{C 3C(Location0>gc 7پI{YG0CamlinternalLazy0G -Ϥ;I8CamlinternalFormatBasics0cEXy match expr with | { pexp_desc = Pexp_extension ({ txt = "test" }, PStr [])} -> Ast_helper.Exp.constant (Const_int 42) | 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  @@@@@@0@@@@@@%arrayH8@@M@A@A@@@@@@8@@@$boolE8@@%false^@@B@$true_@@H@@@A@@@@@I@A@$charB8@@@A@@@@@M@A@#exnG8@@AA@@@@@Q@@@5extension_constructorP8@@@A@@@@@U@@@%floatD8@@@A@@@@@Y@@@*floatarrayQ8@@@A@@@@@]@@@#intA8@@@A@@@@@a@A@%int32L8@@@A@@@@@e@@@%int64M8@@@A@@@@@i@@@&lazy_tN8@@O@A@A@Y@@@@@r@@@$listI8@@P@A"[]a@@@"::b@@@Q@@@ @@A@Y@@@@@@@@)nativeintK8@@@A@@@@@@@@&optionJ8@@S@A$Nonec@@@$Somed@@@@@A@Y@@@@@@@@&stringO8@@@A@@@@@@@@$unitF8@@"()`@@@@@A@@@@@@A@ .Assert_failure\ p@@@@Jm@@@@@@V@@A͠=ocaml.warn_on_literal_patternѐ@@0Division_by_zeroY @@@Aנ  @+End_of_fileX !@@@Aߠ@'FailureU )@%@@A蠰@0Invalid_argumentT 2@.@@A񠰠$#@-Match_failureR ;@:67@@\@@A21@ )Not_foundV I@@@A: 9 @-Out_of_memoryS Q@@@ABA@.Stack_overflowZ Y@@@AJI@.Sys_blocked_io[ a@@@AR"Q"@)Sys_errorW i@e@@A([+Z+@:Undefined_recursive_module] r@qmn@@c@@A6i9h9@ %bytesC8@@@A@@@@@=@@@&Stdlib@A6ࠐ)Parsetree)ParsetreeAv  Bv  @@A0@??@@@@@@? @AFv  @@D@Z {1 A generic Parsetree mapper} Ux  Vx  B@@@@@@A(&mapperRA`z D Iaz D O@@8@@)attributeS@@@@@ @9)attribute@@@ >)attribute@@@ @@ @@ {{ T V|{ T @@A*attributesT@@+@@@ @&W)attribute@@@ @@@ 0a)attribute@@@ @@@ @@ @@ |  |  @@B*binding_opU@@O@@@ @w*binding_op@@@ |*binding_op@@@ @@ @@ }  }  @@C$caseV@@i@@@ @$case@@@ $case@@@ @@ @@ °~  ~  @@D%casesW@@@@@ @~$case@@@ @@@ $case@@@ @@@ @@ @@ Ͱ    9@@E1class_declarationX@@@@@ @1class_declaration@@@ 1class_declaration@@@ @@ @@ ԰@ : <@ : @@)F1class_descriptionY@@@@@ @1class_description@@@ 1class_description@@@ @@ @@ ۰+A  ,A  @@CG*class_exprZ@@@@@ @*class_expr@@@ *class_expr@@@ @@ @@ EB  FB  @@]H+class_field[@@@@@ @+class_field@@@ "+class_field@@@ @@ @@ _C  `C  .@@wI/class_signature\@@@@@ @7/class_signature@@@ @.module_binding@@@?.module_binding@@@@@@A@@BUUL@@X2module_declaration@@@@@E@2module_declaration@@@F2module_declaration@@@G@@H@@IVMOVM@@Y3module_substitution@@@@@L@3module_substitution@@@M3module_substitution@@@N@@O@@PWW@@5Z+module_expr@@@@@S@+module_expr@@@T+module_expr@@@U@@V@@W7X8X@@O[+module_type@@@@@Z@+module_type@@@[+module_type@@@\@@]@@^QYRYM@@i\7module_type_declaration@@@@@a@)7module_type_declaration@@@b.7module_type_declaration@@@c@@d@@ekZNPl[@@]0open_declaration@@@@@h@C0open_declaration@@@iH0open_declaration@@@j@@k@@l\\@@^0open_description@@5@@@o@]0open_description@@@pb0open_description@@@q@@r@@s]]I@@_#pat@@O@@@v@w'pattern@@@w|'pattern@@@x@@y@@z^JL^Jn@@`'payload@@i@@@}@'payload@@@~'payload@@@@@@@_oq_o@@a)signature@@@@@@)signature@@@)signature@@@@@@@``@@b.signature_item@@@@@@.signature_item@@@.signature_item@@@@@@@aa@@c)structure@@@@@@)structure@@@)structure@@@@@@@!b"b3@@9d.structure_item@@@@@@.structure_item@@@.structure_item@@@@@@@;c46<c4q@@Se#typ@@@@@@)core_type@@@)core_type@@@@@@@UdrtVdr@@mf0type_declaration@@@@@@-0type_declaration@@@20type_declaration@@@@@@@oepe@@g.type_extension@@@@@@G.type_extension@@@L.type_extension@@@@@@@ff@@h.type_exception@@9@@@@a.type_exception@@@f.type_exception@@@@@@@ggZ@@i)type_kind@@S@@@@{)type_kind@@@)type_kind@@@@@@@h[]h[@@j-value_binding@@m@@@@-value_binding@@@-value_binding@@@@@@@ǰii@@k1value_description@@@@@@1value_description@@@1value_description@@@@@@@ΰjj @@ l/with_constraint@@@@@@/with_constraint@@@/with_constraint@@@@@@@հ k  k L@@#m@@A@@@@@z D DlMN@)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. mOOp!@@@@@@@@@6@@&{ T _@@Ш@б@г&mapper1{ T a2{ T g@@00//00000@8@@@A@@@@@(%@@@A@@б@гɠʰ>{ T k?{ T t@@ @@г̠ͰF{ T xG{ T @@@@ @@@@@C@ @@ϠϰQ|  @@Ш@б@гҠ&mapper\|  ]|  @@+@@б@гנ$listg|  h|  @гܠݰo|  p|  @@>@@@? @@гߠ$listy|  z|  @г䠐|  |  @@P@@@Q @@R @@S+ @@@C@ V@@}  @@Ш@б@гꠐ&mapper}  }  @@g@@б@г}  }  @@q@@г}  }  @@y@@z @@{@@ @C@ ~@@~  @@Ш@б@г&mapper~  ~  @@@@б@г~  ~  @@@@г~  ~  @@@@ @@@@@C@ @@  @@Ш@б@г&mapper    @@@@б@г $list  '  +@г  "  &@@ʰ@@@˰ @@г$list  4  8@г   /  3@@ܰ@@@$ݰ @@1ް @@8߰+ @@;@C@ @@@ : M@@Ш@б@г&mapper$@ : O%@ : U@@&@@б@г#$.@ : Y/@ : j@@*@@г&'6@ : n7@ : @@-@@5 @@<@@?@C@  @-@))AA  @@Ш@б@г,&mapperLA  MA  @@4@@б@г12VA  WA  @@8%@@г45^A  _A  @@;-@@C. @@J/@@M@C@ 2@;@77$iB  @@Ш@б@г:&mappertB  uB  @@BC@@б@г?@~B  B  @@FM@@гBCB  B  @@IU@@QV @@XW@@[@C@ Z@I@EE2C  @@Ш@б@гH&mapperC  C  @@Pk@@б@гMNC  C  @@Tu@@гPQC  "C  -@@W}@@_~ @@f@@i@C@ @W@SS@D / @@@Ш@б@гV&mapperD / BD / H@@^@@б@г[\D / LD / [@@b@@г^_D / _D / n@@e@@m @@t@@w@C@ @e@aaNE p @@Ш@б@гd&mapperE p E p @@l@@б@гijE p E p @@pŰ@@гlmE p E p @@sͰ@@{ΰ @@ϰ@@@C@ @s@oo\ F  @@Ш@б@гr&mapperF  F  @@z@@б@гwxF  F  @@~@@гz{&F  'F  @@@@ @@@@@C@ @@}}j1G  @@Ш@б@г&mapper<G  =G  @@ @@б@гFG  GG  @@@@гNH  ;OH  Q@@@@ @@@@@C@ "@@xYI S e@@Ш@б@г&mapperdI S geI S m@@3@@б@гnI S qoI S @@=@@гvI S wI S @@E@@F @@G@@@C@ J@@J  @@Ш@б@г&mapperJ  J  @@[@@б@гJ  J  @@e@@гJ  J  @@m@@n @@o@@@C@ r@@K  @@Ш@б@г&mapperK  K  @@@@б@гK  K  @@@@гL  L  5@@@@ @@@@@C@ @@M 7 =@@Ш@б@г&mapperM 7 ?M 7 E@@@@б@гM 7 IM 7 S@@@@гM 7 WM 7 a@@@@ @@@@@C@ "@@àðN c n@@Ш@б@гƠ&mapper N c p N c v@@Ӱ@@б@гˠ̰ N c z N c @@ݰ@@гΠϰ N c  N c @@@@ @@@@@C@ )@@ѠѰ !O  @@Ш@б@гԠ&mapper ,O   -O  @@@@б@г٠ڰ 6O   7O  @@@@гܠݰ >P   ?P  @@ @@ @@@@@C@ 0@@ߠ߰ IQ @@Ш@б@г⠐&mapper TQ  UQ @@#@@б@г砐 ^Q  _Q 2@@-@@гꠐ fQ 6 gQ I@@5@@6 @@7@@@C@ 7:@@ qRK`@@Ш@б@г&mapper |RKb }RKh@@K@@б@г RKl RK@@U@@г RK RK@@]@@^ @@_@@@C@ >b@@ S@@Ш@б@г&mapper S S@@s@@б@г S S@@ }@@г S S@@ @@ @@@@@C@ E@ @   T@@Ш@б@г &mapper T T@@@@б@г(Location T T@@@@г(Location T T @@@@'@@.@@1@C@<@@ U@@Ш@б@г&mapper U! U'@@"ǰ@@б@г  U+ U9@@&Ѱ@@г"# U= UK@@)ٰ@@1ڰ @@8۰@@;@C@C@)@%% VMa@@Ш@б@г(&mapper VMc !VMi@@0@@б@г-. *VMm +VM@@4@@г01 2VM 3VM@@7@@? @@F@@I@C@J@7@33  =W@@Ш@б@г6&mapper HW IW@@>@@б@г;< RW SW@@B!@@г>? ZW [W@@E)@@M* @@T+@@W@C@Q.@E@AA. eX@@Ш@б@гD&mapper pX qX@@L?@@б@гIJ zX {X@@PI@@гLM X  X@@SQ@@[R @@bS@@e@C@XV@S@OO< Y&@@Ш@б@гR&mapper Y( Y.@@Zg@@б@гWX Y2 Y=@@^q@@гZ[ YA YL@@ay@@iz @@p{@@s@C@_~@a@]]J ZNg@@Ш@б@г`&mapper ZNi ZNo@@h@@б@гef ZNs ZN@@l@@гhi [ [@@o@@w @@~@@@C@f@o@kkX \@@Ш@б@гn&mapper \ \@@v@@б@гst \ \@@z@@гvw \ \@@}ɰ@@ʰ @@˰@@@C@m@}@yyf ]@@Ш@б@г|&mapper ] ] @@߰@@б@г ]$ ]4@@@@г "]8 #]H@@@@ @@@@@C@t@@t -^JO@@Ш@б@г&mapper 8^JQ 9^JW@@@@б@г B^J[ C^Jb@@@@г J^Jf K^Jm@@@@ @@@@@C@{@@ U_ox@@Ш@б@г&mapper `_oz a_o@@/@@б@г j_o k_o@@9@@г r_o s_o@@A@@B @@C@@@C@F@@ }`@@Ш@б@г&mapper ` `@@W@@б@г ` `@@a@@г ` `@@i@@j @@k@@@C@n@@ a@@Ш@б@г&mapper a a@@@@б@г a a@@@@г a a@@@@ @@@@@C@@@ b@@Ш@б@г &mapper b b@@@@б@гǠȰ b b%@@@@гʠ˰ b) b2@@@@ @@@@@C@@@͠Ͱ c4D@@Ш@б@гР&mapper c4F c4L@@ϰ@@б@гՠְ c4P c4^@@ٰ@@гؠٰ c4b c4p@@@@ @@@@@C@@@۠۰ drw@@Ш@б@гޠ&mapper (dry )dr@@@@б@г㠐 2dr 3dr@@@@г栐 :dr ;dr@@ @@  @@ @@@C@@@ Ee@@Ш@б@г점&mapper Pe Qe@@@@б@г Ze [e@@)@@г be ce@@1@@2 @@ 3@@ @C@6@@ mf@@Ш@б@г&mapper xf yf@@G@@б@г f f @@Q@@г f  f@@ Y@@Z @@[@@@C@^@ @ g-@@Ш@б@г&mapper g/ g5@@o@@б@г  g9 gG@@y@@г gK gY@@@@ @@&@@)@C@@@ h[f@@Ш@б@г&mapper h[h h[n@@@@б@г h[r h[{@@"@@г h[ h[@@%@@- @@4@@7@C@@%@!! i@@Ш@б@г$&mapper i i@@,@@б@г)* i i@@0ɰ@@г,- i i@@3Ѱ@@;Ұ @@BӰ@@E@C@@3@// j@@Ш@б@г2&mapper j j@@:@@б@г78 "j #j@@>@@г:; *j +j @@A@@I @@P@@S@C@@A@==* 5k @@Ш@б@г@&mapper @k  Ak %@@H@@б@гEF Jk ) Kk 8@@L@@гHI Rk < Sk K@@O!@@W" @@^#@@a@C@&@O@@A@KH@ KJ@.default_mapper br#' cr#5@г &mapper kr#7 lr#=@@ @@@R0 m l l m m m m m@ .  @A@@@ ur## @e ? A default mapper, which implements a "deep identity" mapping.  s>> s>@@@@@@@ n@@ ( {1 Apply mappers to compilation units}  u u@@@@@@0        @%8#@A)tool_name w w@б@г $unit w w@@ @@@S@@г &string w w@@ @@@T'@@@@@U*@@@ w @  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}, {!Load_path}, {!Clflags.open_modules}, {!Clflags.for_package}, {!Clflags.debug}.  x ~Xp@@@@@@@ o@@=%apply sw s|@б&sourceг C&string s s@@ @@@V0        @XS.@A@@б&targetг V&string s s@@ @@@W@@б@г &mappers s@@ @@@X"@@г n$unitss@@ @@@Y/@@@@@Z2@@0%@@[5!s @@G<@@\9%s~@@@(ss@ 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. 45w@@@@@@@Lp@"@M(run_main@A@б@б@г ⠐$listMN@г &stringWX@@ @@@]0YXXYYYYY@r8@A@@@ @@@_ @@г &mapperkl@@ @@@`@@@@@a@@г Ԡ$unit{|@@ @@@b$@@@@@c' @@@ @w  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. @@@@@@@q@@;6 {1 Registration API} @@@@@@0@Kl#@A1register_function,@г #refZ]@б@г"&string/5@@ @@@d$@@б@б@гk$listAE@г=&string:@@@ @@@e?@@@@@@gD @@г &mapperIO@@ @@@hQ@@@@@iT@@г[$unitTX@@ @@@ja@@@@@kd 9 @@@G@@lhJ @@@]@@@nm.[@@@^@@.r@`@@t(register "_c#_k@б@г&string-_m._s@@ @@@o0/../////@@A@@б@б@гՠ$list@_A_@г&stringJ_xK_~@@ @@@p@@@@@@r" @@г &mapper\_]_@@ @@@s/@@@@@t2@@гŠ$unitl_m_@@ @@@u?@@@@@vBu_w @@@I@@wFL @@@{__@ k  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. @@@@@@@s@@Y , {1 Convenience functions to write mappers} @@@@@@0@i~#@A'map_optà@б@б@А!a@B@x@@А!b@B@y#@@@ @@z(@@б@г@&option@А!a%8@@@+@@@|? @@гU&option @А!b/M@@@5@@@~T @@@@@W@@@4@@Z@@@@@t@@@a2extension_of_errorĠ  #@б@г G%error(Location % 3@@ @@@0@}x"@A@@г)extension  7! @@@ @@@@@@@@@@@+   @  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. 7AA8@@@@@@@Ou@@%4attribute_of_warningŠCD @б@г !t(LocationQ R@@ @@@0SRRSSSSS@AY/@A@@б@г&stringbc@@ @@@@@г1)attributeo#p,@@ @@@@@@@@!@@@'@@$* @@@}@ m 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. --@@@@@@@v@@7 / {1 Helper functions to call external mappers}  @@@@@@0@G_#@A3add_ppx_context_strƠ  !  4@б)tool_nameг&string 6 D 6 J@@ @@@@@б@г)structure)Parsetree 6 N 6 a@@ @@@.@@г)structure)Parsetree 6 e 6 x@@ @@@>@@@@@A@@6+@@D 6 : @@@  @ Ԑ 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.  y y!8!I@@@@@@@w@@X3add_ppx_context_sigǠ!K!O!K!b@б)tool_nameгf&string !d!r !d!x@@ @@@0        @sn.@A@@б@г)signature)Parsetree!d!|!d!@@ @@@@@г)signature)Parsetree-!d!.!d!@@ @@@$@@@@@'@@8-@@*9!d!h @@@<!K!K@ , 4 Same as [add_ppx_context_str], but for signatures. H!!I!!@@@@@@@`x@@>4drop_ppx_context_strȠT!!U!!@б'restoreг0$boola!"b!" @@ @@@0cbbccccc@Yp.@A@@б@г4)structure)Parsetreeu!"v!"#@@ @@@@@гD)structure)Parsetree!"'!":@@ @@@$@@@@@'@@8-@@*!" @@@!!@ Drop the ocaml.ppx.context attribute from a structure. If [restore] is true, also restore the associated data in the current process. ";";""@@@@@@@y@@>4drop_ppx_context_sigɠ""""@б'restoreг$bool""""@@ @@@0@Yp.@A@@б@г)signature)Parsetree"#"#@@ @@@@@г)signature)Parsetree"#"#*@@ @@@$@@@@@'@@8-@@*"" @@@""@ ܐ 5 Same as [drop_ppx_context_str], but for signatures. #+#+#+#e@@@@@@@z@@>- {1 Cookies}  #g#g #g#y@@@@@@0@Ne#@A 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). #{#{#$1@@@@@@*set_cookieʠ$$3$7%$3$A@б@г&string/$3$C0$3$I@@ @@@)@@б@г*expression)ParsetreeA$3$MB$3$a@@ @@@;@@г$unitN$3$eO$3$i@@ @@@H@@@@@K@@@(@@N+ @@@\$3$3@@s{@@@T*get_cookieˠg$j$nh$j$x@б@гϠ&stringr$j$zs$j$@@ @@@0tssttttt@mY@A@@г&option$j$$j$@гM*expression)Parsetree$j$$j$@@ @@@@@@@@@! @@@'@@$*@@@$j$j@@|@@@*@GAA@G2@ @@o&@@6@@@v:@@@k)@@e@^%@@0@K`'@A@ H************************************************************************A@@A@L@ H BMMBM@ H OCaml CC@ H DD3@ H Alain Frisch, LexiFi E44E4@ H FF@ H Copyright 2012 Institut National de Recherche en Informatique et GG@ H en Automatique. HHg@ H IhhIh@ H All rights reserved. This file is distributed under the terms of JJ@ H the GNU Lesser General Public License version 2.1, with the KKN@ H special exception on linking described in the file LICENSE.  LOO LO@ H MM@ H************************************************************************NN5@ * 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 (Const_int 42) | 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}.  !* {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}, {!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}   * 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.  -* {1 Convenience functions to write mappers}  * 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.  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. U 5* Same as [add_ppx_context_str], but for signatures.  * 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. V.* {1 Cookies} H * 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). :@-./boot/ocamlc"-g)-nostdlib"-I$boot*-use-prims2runtime/primitives0-strict-sequence*-principal(-absname"-w>+a-4-9-40-41-42-44-45-48-66-70+-warn-error"+a*-bin-annot,-safe-string/-strict-formats"-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"-c */home/barsac/ci/builds/workspace/bootstrap - @0Q@il80@@@0 cܮN҄n(Asttypes0{EX P8CamlinternalFormatBasics0cEXygc 7پI{YG)Longident0{C 3Cu03p雲Ҳ$&Stdlib0>,W:(.Stdlib__Buffer0'ON͋[h#ڗA.Stdlib__Either0 }rCT0J){9).Stdlib__Format0=z+.m׸,Stdlib__Lazy0'rruSZY.Stdlib__Lexing0zsc\ZoQ+Stdlib__Seq0yt\eǟ&Q,}-Stdlib__Uchar0 |K?bޣ ˠ(Warnings0Ӷ.5S6V@0 cܮN҄nAP@  @UT@ba@@@@@@@@ @NMfe@on@TS@@@@P@