• en

Module Pparse

type error =
| CannotRun of string
| WrongMagic of string
exception Error of error
val preprocess : string -> string
val remove_preprocessed : string -> unit
val file : Format.formatter -> tool_name:string -> string -> Lexing.lexbuf -> 'a -> string -> 'a
val apply_rewriters : tool_name:string -> string -> 'a -> 'a
val report_error : Format.formatter -> error -> unit
val parse_implementation : Format.formatter -> tool_name:string -> string -> Parsetree.structure
val parse_interface : Format.formatter -> tool_name:string -> string -> Parsetree.signature