Skip to content

Commit

Permalink
Polish usage
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Oct 24, 2023
1 parent 4b4d81d commit feaa16b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions docs/refmt.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: refmt
title: Format (refmt)
---

`refmt` formats Reason programs, is a parser and pretty-printer for Reason. Stands for `re` `f`or`m`a`t`ter.
`refmt` stands by Reason Formatter and it formats Reason programs, is a parser and pretty-printer for Reason.

`refmt` can easily convert Reason code to OCaml code and vice versa, since Reason and OCaml are compatible on the AST-level.

Comes inside the [`reason`](https://opam.ocaml.org/packages/reason) package from opam https://opam.ocaml.org/packages/reason/.
Comes inside the [`reason`](https://opam.ocaml.org/packages/reason) package from the [opam repository](https://opam.ocaml.org/packages/reason/).

## Installation

Expand All @@ -16,13 +16,21 @@ opam install reason

## Usage

It comes integrated automatically in dune, so you don't need to do anything to use it.
It comes integrated automatically in `dune`, so you don't need to do anything to use it, but you can use it directly from the command line via `refmt` directly or via dune.

```bash
dune build @fmt
# or
refmt
```

## Help

```sh
REFMT(1) Refmt Manual REFMT(1)

NAME
refmt - Reason's Parser & Pretty-printer
refmt - Reason´s Parser & Pretty-printer

SYNOPSIS
refmt [OPTION]... [FILENAMES]...
Expand All @@ -37,7 +45,7 @@ ARGUMENTS

OPTIONS
-e, --assume-explicit-arity
if a constructor's argument is a tuple, always interpret it as
if a constructor´s argument is a tuple, always interpret it as
multiple arguments

-h VAL, --heuristics-file=VAL
Expand Down
4 changes: 2 additions & 2 deletions docs/rtop.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: rtop
title: REPL (rtop)
---

`rtop` is a REPL (Read, Evaluate, Print, and Loop) to interact with Reason.

Comes from the [`rtop`](https://opam.ocaml.org/packages/rtop) package in opam https://opam.ocaml.org/packages/rtop/.
Comes from the [`rtop`](https://opam.ocaml.org/packages/rtop) package in the [opam repository](https://opam.ocaml.org/packages/rtop/).

Inspired by [utop](https://github.com/ocaml-community/utop)

Expand Down

0 comments on commit feaa16b

Please sign in to comment.