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.loc
  • type loc = Location.t
  • type lid = Longident.t with_loc
  • type str = string with_loc
  • type str_opt = string option with_loc
  • type 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 the default_loc within the scope of the execution of the provided function.

πŸŽ€ Constants πŸŽ€

  • module Const : sig end
  • module Attr : sig end

πŸ’… Attributes πŸ’…

πŸ’– Core language πŸ’–

  • module Typ : sig end β€” Type expressions
  • module Pat : sig end β€” Patterns
  • module Exp : sig end β€” Expressions
  • module Val : sig end β€” Value declarations
  • module Type : sig end β€” Type declarations
  • module Te : sig end β€” Type extensions

🧚 Module language 🧚

  • module Mty : sig end β€” Module type expressions
  • module Mod : sig end β€” Module expressions
  • module Sig : sig end β€” Signature items
  • module Str : sig end β€” Structure items
  • module Md : sig end β€” Module declarations
  • module Ms : sig end β€” Module substitutions
  • module Mtd : sig end
  • module Mb : sig end β€” Module bindings
  • module Opn : sig end β€” Opens
  • module Incl : sig end β€” Includes
  • module Vb : sig end β€” Value bindings

🌈 Class language 🌈

  • module Cty : sig end
  • module Ctf : sig end
  • module Cl : sig end
  • module Cf : sig end
  • module Ci : sig end
  • module Csig : sig end
  • module Cstr : sig end
  • module Rf : sig end
  • module 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