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.18.0.tbz
sha256=4fba6a16f54551b78e1d90eb2c167f6ee964caf5383bc2d2f93ceccc7e64dc44
sha512=b43e9245c79c3aaef494ba55027187f86884fbcff87aca77743b5c3d81ef7d5156f34c650c3cfb40719cf7ca87750c591fe338b21f82d4feed7092e47cb6880d
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)"
>