ATDCAT(1)

πŸ¦‹ ATDCAT(1) πŸ¦‹ β€” ok bestie, let's talk ATD files

so this little icon lives in the User Manuals section of the manual pages, and honestly? she's giving utility. her whole thing is checking your ATD files, making them pretty, and doing lil transformations on them. periodt.


✨ NAME ✨

atdcat β€” syntax check and transformations of ATD files πŸŽ€


🫢 SYNOPSIS 🫢

atdcat [options...] file

πŸ’– DESCRIPTION πŸ’–

okay so here's the vibe: atdcat does syntax checking and pretty printing on ATD files. that's the main character energy. ✨

and like, she's not a one-trick pony either β€” she can also do transformations, for example monomorphization, or flattening of inheritance hierarchies. yes bestie, she does that. πŸ’…


🌸 OPTIONS 🌸

  • -x β€” make type expressions monomorphic. no more parameters, we're going full concrete πŸ”₯
  • -xk β€” keep parametrized type definitions and imply -x. heads up: the default is to return only monomorphic type definitions, so this is you saying "no actually, keep the parametrized ones too" πŸ’
  • -xd β€” debug mode, which implies -x. she's in her debugging era πŸ›
  • -i β€” expand all inherit statements. every single one. no survivors πŸ’€
  • -if β€” expand inherit statements in records specifically
  • -iv β€” expand inherit statements in sum types</sum> specifically
  • -ml <name> β€” output the ocaml code of the ATD abstract syntax tree. say name and she'll hand you the OCaml 🐫
  • -html-doc β€” replace directly <doc html="..."> by (*html ... *) or replace <doc text="..."> by (*html ... *) where the contents are formatted as HTML using <p>, <code> and <pre>. this is suitable input for caml2html -ext html:cat, which converts ATD files into HTML. cute docs, slay πŸ“„βœ¨
  • -strip NAME1[,NAME2,...] β€” remove all annotations of the form <NAME1 ...>, <NAME2 ...>, etc. bye bye annotations πŸ‘‹
  • -strip-all β€” remove all annotations. every last one. nothing is safe 🧹
  • -version β€” print the version and exit. quick lil flex πŸ’œ
  • -help | --help β€” print options and exit. when you're lost, she's got you 🫢

πŸ‘€ SEE ALSO πŸ‘€


πŸ‘‘ AUTHOR πŸ‘‘

This manual page was written by Sylvain Le Gall <gildor@debian.org> and Hendrik Tews <hendrik@askra.de>, specifically for the Debian project (and may be used by others). legends, honestly 🌈


okay and for the cute sign-off: this whole thing is filed under ATDCAT, dated May 2013, and answers to ATDCAT(1). that's the tea, bestie β€” go check your ATD files πŸ’–πŸŒΈπŸ¦‹