Parser_standard.Ast_mapper
type mapper = {
attribute : mapper ->
Parser_standard.Parsetree.attribute ->
Parser_standard.Parsetree.attribute;
attributes : mapper ->
Parser_standard.Parsetree.attribute list ->
Parser_standard.Parsetree.attribute list;
binding_op : mapper ->
Parser_standard.Parsetree.binding_op ->
Parser_standard.Parsetree.binding_op;
case : mapper ->
Parser_standard.Parsetree.case ->
Parser_standard.Parsetree.case;
cases : mapper ->
Parser_standard.Parsetree.case list ->
Parser_standard.Parsetree.case list;
class_declaration : mapper ->
Parser_standard.Parsetree.class_declaration ->
Parser_standard.Parsetree.class_declaration;
class_description : mapper ->
Parser_standard.Parsetree.class_description ->
Parser_standard.Parsetree.class_description;
class_expr : mapper ->
Parser_standard.Parsetree.class_expr ->
Parser_standard.Parsetree.class_expr;
class_field : mapper ->
Parser_standard.Parsetree.class_field ->
Parser_standard.Parsetree.class_field;
class_signature : mapper ->
Parser_standard.Parsetree.class_signature ->
Parser_standard.Parsetree.class_signature;
class_structure : mapper ->
Parser_standard.Parsetree.class_structure ->
Parser_standard.Parsetree.class_structure;
class_type : mapper ->
Parser_standard.Parsetree.class_type ->
Parser_standard.Parsetree.class_type;
class_type_declaration : mapper ->
Parser_standard.Parsetree.class_type_declaration ->
Parser_standard.Parsetree.class_type_declaration;
class_type_field : mapper ->
Parser_standard.Parsetree.class_type_field ->
Parser_standard.Parsetree.class_type_field;
constant : mapper ->
Parser_standard.Parsetree.constant ->
Parser_standard.Parsetree.constant;
constructor_declaration : mapper ->
Parser_standard.Parsetree.constructor_declaration ->
Parser_standard.Parsetree.constructor_declaration;
expr : mapper ->
Parser_standard.Parsetree.expression ->
Parser_standard.Parsetree.expression;
extension : mapper ->
Parser_standard.Parsetree.extension ->
Parser_standard.Parsetree.extension;
extension_constructor : mapper ->
Parser_standard.Parsetree.extension_constructor ->
Parser_standard.Parsetree.extension_constructor;
include_declaration : mapper ->
Parser_standard.Parsetree.include_declaration ->
Parser_standard.Parsetree.include_declaration;
include_description : mapper ->
Parser_standard.Parsetree.include_description ->
Parser_standard.Parsetree.include_description;
label_declaration : mapper ->
Parser_standard.Parsetree.label_declaration ->
Parser_standard.Parsetree.label_declaration;
location : mapper -> Ocaml_common.Location.t -> Ocaml_common.Location.t;
module_binding : mapper ->
Parser_standard.Parsetree.module_binding ->
Parser_standard.Parsetree.module_binding;
module_declaration : mapper ->
Parser_standard.Parsetree.module_declaration ->
Parser_standard.Parsetree.module_declaration;
module_substitution : mapper ->
Parser_standard.Parsetree.module_substitution ->
Parser_standard.Parsetree.module_substitution;
module_expr : mapper ->
Parser_standard.Parsetree.module_expr ->
Parser_standard.Parsetree.module_expr;
module_type : mapper ->
Parser_standard.Parsetree.module_type ->
Parser_standard.Parsetree.module_type;
module_type_declaration : mapper ->
Parser_standard.Parsetree.module_type_declaration ->
Parser_standard.Parsetree.module_type_declaration;
open_declaration : mapper ->
Parser_standard.Parsetree.open_declaration ->
Parser_standard.Parsetree.open_declaration;
open_description : mapper ->
Parser_standard.Parsetree.open_description ->
Parser_standard.Parsetree.open_description;
pat : mapper ->
Parser_standard.Parsetree.pattern ->
Parser_standard.Parsetree.pattern;
payload : mapper ->
Parser_standard.Parsetree.payload ->
Parser_standard.Parsetree.payload;
signature : mapper ->
Parser_standard.Parsetree.signature ->
Parser_standard.Parsetree.signature;
signature_item : mapper ->
Parser_standard.Parsetree.signature_item ->
Parser_standard.Parsetree.signature_item;
structure : mapper ->
Parser_standard.Parsetree.structure ->
Parser_standard.Parsetree.structure;
structure_item : mapper ->
Parser_standard.Parsetree.structure_item ->
Parser_standard.Parsetree.structure_item;
typ : mapper ->
Parser_standard.Parsetree.core_type ->
Parser_standard.Parsetree.core_type;
type_declaration : mapper ->
Parser_standard.Parsetree.type_declaration ->
Parser_standard.Parsetree.type_declaration;
type_extension : mapper ->
Parser_standard.Parsetree.type_extension ->
Parser_standard.Parsetree.type_extension;
type_exception : mapper ->
Parser_standard.Parsetree.type_exception ->
Parser_standard.Parsetree.type_exception;
type_kind : mapper ->
Parser_standard.Parsetree.type_kind ->
Parser_standard.Parsetree.type_kind;
value_binding : mapper ->
Parser_standard.Parsetree.value_binding ->
Parser_standard.Parsetree.value_binding;
value_description : mapper ->
Parser_standard.Parsetree.value_description ->
Parser_standard.Parsetree.value_description;
with_constraint : mapper ->
Parser_standard.Parsetree.with_constraint ->
Parser_standard.Parsetree.with_constraint;
directive_argument : mapper ->
Parser_standard.Parsetree.directive_argument ->
Parser_standard.Parsetree.directive_argument;
toplevel_directive : mapper ->
Parser_standard.Parsetree.toplevel_directive ->
Parser_standard.Parsetree.toplevel_directive;
toplevel_phrase : mapper ->
Parser_standard.Parsetree.toplevel_phrase ->
Parser_standard.Parsetree.toplevel_phrase;
}
val default_mapper : mapper
val apply : source:string -> target:string -> mapper -> unit
val run_main : (string list -> mapper) -> unit
val register : string -> (string list -> mapper) -> unit
val extension_of_error :
Ocaml_common.Location.error ->
Parser_standard.Parsetree.extension
val attribute_of_warning :
Ocaml_common.Location.t ->
string ->
Parser_standard.Parsetree.attribute
val add_ppx_context_str :
tool_name:string ->
Parser_standard.Parsetree.structure ->
Parser_standard.Parsetree.structure
val add_ppx_context_sig :
tool_name:string ->
Parser_standard.Parsetree.signature ->
Parser_standard.Parsetree.signature
val drop_ppx_context_str :
restore:bool ->
Parser_standard.Parsetree.structure ->
Parser_standard.Parsetree.structure
val drop_ppx_context_sig :
restore:bool ->
Parser_standard.Parsetree.signature ->
Parser_standard.Parsetree.signature
val set_cookie : string -> Parser_standard.Parsetree.expression -> unit
val get_cookie : string -> Parser_standard.Parsetree.expression option