hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit a671acf57aef4733c5670e166b835a5e2d10039f
parent 05ab3c9071782c056986a7b8954f893928fe36ad
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun, 12 Jun 2022 19:29:30 -0400

docs/hare.scd: more user-friendly man page

Specifically, wherever the word "shall" was used, the paragraph is
rewritten.

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mdocs/hare.scd | 41+++++++++++++++++++----------------------
1 file changed, 19 insertions(+), 22 deletions(-)

diff --git a/docs/hare.scd b/docs/hare.scd @@ -36,10 +36,10 @@ hare - compiles, runs, and tests Hare programs # DESCRIPTION ; TODO: Decide on and document driver exit statuses -*hare build* compiles a Hare program into an executable. The _path_ argument -shall be either the path to a Hare source file, or to a directory which contains -a Hare module (see *MODULES* below), or may be omitted, in which case the -working directory shall contain the Hare module to build. +*hare build* compiles a Hare program into an executable. The _path_ argument is +a path to a Hare source file or a directory which contains a Hare module (see +*MODULES* below). If no path is given, the Hare module contained in the current +working directory is built. *hare deps* queries the dependencies graph of a Hare program. The _path_ argument is equivalent in usage to *hare build*. @@ -73,12 +73,11 @@ value, and optional context, separated by tabs. it. *-D* _ident:type=value_ - Passed to *harec*(1) to define an object in the type system. _ident_ - shall be the identifier of this object (e.g. foo::bar::baz), _type_ - shall be its type (in Hare syntax, e.g. "str" or - "struct { x: int, y: int }"), and _value_ shall be the desired value (as a - Hare expression, e.g. "42"). Take care to address any necessary - escaping to avoid conflicts between your shell syntax and Hare syntax. + Passed to *harec*(1) to define a constant in the type system. _ident_ is + parsed as a Hare identifier (e.g. "foo::bar::baz"), _type_ as a Hare + type (e.g. "str" or "struct { x: int, y: int }"), and _value_ as a Hare + expression (e.g. "42"). Take care to address any necessary escaping to + avoid conflicts between your shell syntax and Hare syntax. *-j* _jobs_ Defines the maximum number of jobs which *hare* will execute in @@ -123,12 +122,11 @@ value, and optional context, separated by tabs. it. *-D* _ident:type=value_ - Passed to *harec*(1) to define an object in the type system. _ident_ - shall be the identifier of this object (e.g. foo::bar::baz), _type_ - shall be its type (in Hare syntax, e.g. "str" or - "struct { x: int, y: int }"), and _value_ shall be the desired value (as a - Hare expression, e.g. "42"). Take care to address any necessary - escaping to avoid conflicts between your shell syntax and Hare syntax. + Passed to *harec*(1) to define a constant in the type system. _ident_ is + parsed as a Hare identifier (e.g. "foo::bar::baz"), _type_ as a Hare + type (e.g. "str" or "struct { x: int, y: int }"), and _value_ as a Hare + expression (e.g. "42"). Take care to address any necessary escaping to + avoid conflicts between your shell syntax and Hare syntax. *-j* _jobs_ Defines the maximum number of jobs which *hare* will execute in @@ -152,12 +150,11 @@ value, and optional context, separated by tabs. it. *-D* _ident:type=value_ - Passed to *harec*(1) to define an object in the type system. _ident_ - shall be the identifier of this object (e.g. foo::bar::baz), _type_ - shall be its type (in Hare syntax, e.g. "str" or - "struct { x: int, y: int }"), and _value_ shall be the desired value (as a - Hare expression, e.g. "42"). Take care to address any necessary - escaping to avoid conflicts between your shell syntax and Hare syntax. + Passed to *harec*(1) to define a constant in the type system. _ident_ is + parsed as a Hare identifier (e.g. "foo::bar::baz"), _type_ as a Hare + type (e.g. "str" or "struct { x: int, y: int }"), and _value_ as a Hare + expression (e.g. "42"). Take care to address any necessary escaping to + avoid conflicts between your shell syntax and Hare syntax. *-j* _jobs_ Defines the maximum number of jobs which *hare* will execute in