package reason
Reason: Syntax & Toolchain for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
reason-3.16.0.tbz
sha256=47b0e43a7d348e2a850658ab4bec5a4fbbb9fd4ff3ec8a1c1816511558c5364e
sha512=0d8dbe33ac17b765ea018522910a333831fec278ae4da25ba039ce4d2d8152f9b2fbba5b40c453241bf4323e55e0dc070170b04caa35742c6e33a7f726feafb3
doc/src/reason.refmt-lib/refmt_args.ml.html
Source file refmt_args.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
open Vendored_cmdliner let interface = let doc = "parse AST as an interface" in Arg.(value & opt bool false & info [ "i"; "interface" ] ~doc) let recoverable = let doc = "enable recoverable parser" in Arg.(value & flag & info [ "r"; "recoverable" ] ~doc) let explicit_arity = let doc = "if a constructor's argument is a tuple, always interpret it as multiple \ arguments" in Arg.(value & flag & info [ "e"; "assume-explicit-arity" ] ~doc) let parse_ast = let docv = "FORM" in let doc = "parse AST in FORM, which is one of: (ml | re | binary (for compiler \ input) | binary_reason (for interchange between Reason versions))" in let opts = Arg.enum [ "ml", `ML ; "re", `Reason ; "binary", `Binary ; "binary_reason", `BinaryReason ; "auto", `Auto ] in Arg.(value & opt (some opts) None & info [ "parse" ] ~docv ~doc) let print = let docv = "FORM" in let doc = "print AST in FORM, which is one of: (ml | re (default) | binary (for \ compiler input) | binary_reason (for interchange between Reason versions) \ | ast (print human readable AST directly) | none)" in let opts = Arg.enum [ "ml", `ML ; "re", `Reason ; "binary", `Binary ; "binary_reason", `BinaryReason ; "ast", `AST ; "none", `None ] in Arg.(value & opt opts `Reason & info [ "p"; "print" ] ~docv ~doc) let print_width = let docv = "COLS" in let doc = "wrapping width for printing the AST" in let env = Cmd.Env.info "REFMT_PRINT_WIDTH" ~doc in Arg.(value & opt int 80 & info [ "w"; "print-width" ] ~docv ~doc ~env) let heuristics_file = let doc = "load path as a heuristics file to specify which constructors carry a \ tuple rather than multiple arguments. Mostly used in removing \ [@implicit_arity] introduced from OCaml conversion.\n\ \t\texample.txt:\n\ \t\tConstructor1\n\ \t\tConstructor2" in Arg.(value & opt (some file) None & info [ "h"; "heuristics-file" ] ~doc) let in_place = let doc = "reformat a file in-place" in Arg.(value & flag & info [ "in-place" ] ~doc) let input = let docv = "FILENAMES" in let doc = "input files; if empty, assume stdin" in Arg.(value & pos_all non_dir_file [] & info [] ~docv ~doc)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>