OTT(1)

πŸ“¦
version 0.34 Β· 5 versions
, in debian trixie, ubuntu questing

🌸 NAME 🌸

Ott β€” manual page for Ott version 0.34, distribution of Mon Dec 30 10:12:45 GMT 2024 πŸ’–


✨ DESCRIPTION ✨

okay so bestie, welcome to OTT(1), you made it πŸ’… this is the manual page for Ott version 0.34, distribution of Mon Dec 30 10:12:45 GMT 2024 β€” same version, same date, she's consistent, we love that for her πŸŽ€

here's the whole vibe, the way you actually call her:

ott <options> <filename1> .. <filenamen>
want the ocamlyacc trace? iconic. use: OCAMLRUNPARAM=p ott ...

and lowkey the bestie shortcut, because nobody wants to type -i eight times:

ott <options> <filename1> .. <filenamen>

is equivalent to

ott -i <filename1> .. -i <filenamen> <options>

same energy, different outfit ✨


πŸŽ€ the options (all of them, no skipping, no cap) πŸŽ€

  • -i <filename> β€” input file πŸ’– can be used multiple times (stack 'em up bestie)
  • -o <filename> β€” output file, also can be used multiple times
  • -writesys <filename> β€” output system definition
  • -readsys <filename> β€” input system definition
  • -tex_filter <src><dst> β€” files to TeX filter
  • -coq_filter <src><dst> β€” files to Coq filter
  • -hol_filter <src><dst> β€” files to HOL filter
  • -lem_filter <src><dst> β€” files to HOL filter (yes, it says HOL again, that's literally what the page says, I'm just the messenger 🫢)
  • -isa_filter <src><dst> β€” files to Isabelle filter
  • -ocaml_filter <src><dst> β€” files to OCaml filter
  • -merge <false> β€” merge grammar and definition rules (defaults to <false>)
  • -parse <string> β€” test parse symterm, eg ":nontermroot: term"
  • -fast_parse <false> β€” do not parse :rulename: pseudoterminals
  • -signal_parse_errors <false> β€” return >0 if there are bad defns
  • -picky_multiple_parses <false> β€” picky about multiple parses
  • -quotient_rules <true> β€” quotient rules, as per {{ quotient-with ntr }} homs
  • -generate_aux_rules <true> β€” generate auxiliary rules or constructor arguments from {{ aux ... }} homs
  • -aux_style_rules <true> β€” auxiliary rules (true) vs constructor arguments (false)
  • -output_source_locations <0> β€” include source location info in output (0=none, 1=drules, 2=grammar+drules)
  • -colour <true> β€” use (vt220) colour for ASCII pretty print 🌈
  • -show_sort <false> β€” show ASCII pretty print of syntax
  • -show_defns <false> β€” show ASCII pretty print defns
  • -tex_show_meta <true> β€” include meta prods and rules in TeX output
  • -tex_show_categories <false> β€” signal production flags in TeX output
  • -tex_suppress_category <[]> β€” suppress productions and rules with this category in TeX output
  • -tex_suppress_ntr <[]> β€” suppress nonterminal root in TeX output
  • -tex_colour <true> β€” colour parse errors in TeX output
  • -tex_wrap <true> β€” wrap TeX output in document pre/postamble
  • -tex_name_prefix <string> β€” prefix for tex commands (default "ott")
  • -isabelle_primrec <true> β€” use "primrec" instead of "fun" for functions
  • -isabelle_inductive <true> β€” use "inductive" instead of "inductive_set" for relations
  • -isa_syntax <false> β€” use fancy syntax in Isabelle output ✨
  • -isa_generate_lemmas <false> β€” lemmas for collapsed functions in Isabelle
  • -coq_avoid <1> β€” coq type-name avoidance (0=nothing, 1=avoid, 2=secondaryify)
  • -coq_expand_list_types <false> β€” expand list types in Coq output
  • -coq_lngen <false> β€” lngen compatibility
  • -coq_names_in_rules <true> β€” copy user names in rule definitions
  • -coq_use_filter_fn <false> β€” use list_filter instead of list_minus2 in substitutions
  • -ocaml_include_terminals <false> β€” include terminals in OCaml output (experimental!)
  • -ocaml_pp <target.ml filename> β€” generate OCaml AST pretty printer files (experimental!) (also included in .mly target)
  • -ocaml_pp_ast_module β€” override default OCaml module name for AST module (experimental!)
  • -ocaml_pp_json <false> β€” include JSON output in pretty printer (experimental)
  • -pp_grammar β€” (debug) print term grammar
  • -dot <filename> β€” (debug) dot graph of syntax dependencies
  • -alltt <filename> β€” (debug) alltt output of single source file
  • -sort <true> β€” (debug) do topological sort
  • -process_defns <true> β€” (debug) process inductive reln definitions
  • -showraw <false> β€” (debug) show raw grammar
  • -ugly <false> β€” (debug) use ugly ASCII output 😭
  • -no_rbcatn <true> β€” (debug) remove relevant bind clauses
  • -lem_debug β€” (debug) print lem debug locations
  • -help β€” display this list of options
  • --help β€” display this list of options

tiny vibe check before you go: the -ocaml_* pretty-printer crew is marked experimental, and the (debug) gang is literally labelled debug, so don't act surprised when they act up πŸ™ˆ

and that's the whole page bestie, you ate πŸ“ go compile something gorgeous. this was Ott version 0.34, distribution ... June 2025 β€” mwah, periodt πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from