module Pcaml: sig end
Hold variables to be set by language syntax extensions. Some of them
are provided for quotations management.
val syntax_name : string refval parse_interf : (char Stream.t -> (MLast.sig_item * MLast.loc) list * bool) refval parse_implem : (char Stream.t -> (MLast.str_item * MLast.loc) list * bool) refimplem and interf
defined below.val gram : Grammar.g val interf : ((MLast.sig_item * MLast.loc) list * bool) Grammar.Entry.e val implem : ((MLast.str_item * MLast.loc) list * bool) Grammar.Entry.e val top_phrase : MLast.str_item option Grammar.Entry.e val use_file : (MLast.str_item list * bool) Grammar.Entry.e val module_type : MLast.module_type Grammar.Entry.e val module_expr : MLast.module_expr Grammar.Entry.e val sig_item : MLast.sig_item Grammar.Entry.e val str_item : MLast.str_item Grammar.Entry.e val expr : MLast.expr Grammar.Entry.e val patt : MLast.patt Grammar.Entry.e val ctyp : MLast.ctyp Grammar.Entry.e val let_binding : (MLast.patt * MLast.expr) Grammar.Entry.e val type_declaration : MLast.type_decl Grammar.Entry.e val class_sig_item : MLast.class_sig_item Grammar.Entry.e val class_str_item : MLast.class_str_item Grammar.Entry.e val class_expr : MLast.class_expr Grammar.Entry.e val class_type : MLast.class_type Grammar.Entry.e pa_o.cmo and pa_r.cmo.val input_file : string refval output_file : string option refval report_error : exn -> unitFormat.val quotation_dump_file : string option refquotation_dump_file optionally tells the compiler to dump the
result of an expander if this result is syntactically incorrect.
If None (default), this result is not dumped. If Some fname, the
result is dumped in the file fname.val version : stringval add_option : string -> Arg.spec -> string -> unitval no_constructors_arity : bool refTrue: dont generate constructor arity.val sync : (char Stream.t -> unit) refval handle_expr_quotation : MLast.loc -> string * string -> MLast.exprval handle_expr_locate : MLast.loc -> int * string -> MLast.exprval handle_patt_quotation : MLast.loc -> string * string -> MLast.pattval handle_patt_locate : MLast.loc -> int * string -> MLast.pattval expr_reloc : (MLast.loc -> MLast.loc) -> int -> MLast.expr -> MLast.exprval patt_reloc : (MLast.loc -> MLast.loc) -> int -> MLast.patt -> MLast.pattval rename_id : (string -> string) reftype err_ctx =
|
Finding
|
Expanding
|
ParsingResult of ((int * int) * string)
|
Locating
exception Qerror of (string * err_ctx * exn)
val print_interf : ((MLast.sig_item * MLast.loc) list -> unit) refval print_implem : ((MLast.str_item * MLast.loc) list -> unit) refpr_dump.cmo, pr_o.cmo and pr_r.cmo.type 'a printer_t = {
mutable pr_fun : string -> 'a -> string -> kont -> Spretty.pretty;
mutable pr_levels : 'a pr_level list;
type 'a pr_level = {
pr_label : string;
pr_box : 'a -> Spretty.pretty Stream.t -> Spretty.pretty;
mutable pr_rules : 'a pr_rule ;
type'apr_rule =('a,
'a curr ->
'a next -> string -> kont -> Spretty.pretty Stream.t)
Extfun.t
type'acurr ='a -> string -> kont -> Spretty.pretty Stream.t
type'anext ='a -> string -> kont -> Spretty.pretty
type kont = Spretty.pretty Stream.t
val pr_sig_item : MLast.sig_item printer_t val pr_str_item : MLast.str_item printer_t val pr_module_type : MLast.module_type printer_t val pr_module_expr : MLast.module_expr printer_t val pr_expr : MLast.expr printer_t val pr_patt : MLast.patt printer_t val pr_ctyp : MLast.ctyp printer_t val pr_class_sig_item : MLast.class_sig_item printer_t val pr_class_str_item : MLast.class_str_item printer_t val pr_class_type : MLast.class_type printer_t val pr_class_expr : MLast.class_expr printer_t val pr_expr_fun_args : (MLast.expr, MLast.patt list * MLast.expr) Extfun.t refval find_pr_level : string -> 'a pr_level list -> 'a pr_level val top_printer : 'a printer_t -> 'a -> unitval string_of : 'a printer_t -> 'a -> stringval inter_phrases : string option ref