Up

module Pparse

: sig
#
type error =
# | CannotRun of string
# | WrongMagic of string
#
exception Error of error

If restore = true (the default), cookies set by external rewriters will be kept for later calls.

#
val apply_rewriters_str : ?restore:bool -> tool_name:string -> Parsetree.structure -> Parsetree.structure
#
val apply_rewriters_sig : ?restore:bool -> tool_name:string -> Parsetree.signature -> Parsetree.signature
#
val report_error : Format.formatter -> error -> unit
end