Ast_helper(3)
π Ast_helper(3) β OCaml library manual, but make it cute π
Okay bestie, this is the manual page for Ast_helper(3) from the OCaml library, and itβs literally all about helpers to produce Parsetree fragments. Slay.
π NAME π
Ast_helper β Helpers to produce Parsetree fragments.
π¦ Module π¦
Module Ast_helper
β¨ Documentation β¨
Hereβs the signature block, exactly as it shows up:
Module Ast_helper
: sig end
Helpers to produce Parsetree fragments. Yes, that line is here too β iykyk.
β οΈ Warning: This module is unstable and part of Compiler_libs .
Now the type aliases, no cap:
type 'a with_loc = 'a Location.loctype loc = Location.ttype lid = Longident.t with_loctype str = string with_loctype str_opt = string option with_loctype attrs = Parsetree.attribute list
πΈ Default locations πΈ
val default_loc : loc refβ Default value for all optional location arguments.val with_default_loc : loc -> (unit -> 'a) -> 'aβ Set thedefault_locwithin the scope of the execution of the provided function.
π Constants π
module Const : sig endmodule Attr : sig end
π Attributes π
π Core language π
module Typ : sig endβ Type expressionsmodule Pat : sig endβ Patternsmodule Exp : sig endβ Expressionsmodule Val : sig endβ Value declarationsmodule Type : sig endβ Type declarationsmodule Te : sig endβ Type extensions
π§ Module language π§
module Mty : sig endβ Module type expressionsmodule Mod : sig endβ Module expressionsmodule Sig : sig endβ Signature itemsmodule Str : sig endβ Structure itemsmodule Md : sig endβ Module declarationsmodule Ms : sig endβ Module substitutionsmodule Mtd : sig endmodule Mb : sig endβ Module bindingsmodule Opn : sig endβ Opensmodule Incl : sig endβ Includesmodule Vb : sig endβ Value bindings
π Class language π
module Cty : sig endmodule Ctf : sig endmodule Cl : sig endmodule Cf : sig endmodule Ci : sig endmodule Csig : sig endmodule Cstr : sig endmodule Rf : sig endmodule Of : sig end
Thatβs the whole vibe, bestie! π«Ά This pageβs source/version is OCamldoc, dated 2026-06-22, and itβs the Ast_helper(3) manual page. Periodt. π
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms