package reason
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Reason: Syntax & Toolchain for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
reason-3.17.3.tbz
sha256=01c4591b8213ad8c71b6e9f1d180eabd200d441936ee27fe9f99646b75f9865c
sha512=f167097b3254fbf400bb816275f84157a0a9c691ebc877861e80b1c32c7e2ebc553e0a6a0ef073ec89c2c20ce80c42959dc89811e49712edd0c1fe6dce4a90e9
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 78open 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)"
>