Skip to content

Commit 062c387

Browse files
authored
Convert OCaml stdlib sources to .res syntax (#6340)
* stdlib-406: remove unused files * Convert OCaml stdlib to .res syntax * @ocaml.doc -> @res.doc * format * @ocaml.deprecated -> @deprecated * Fix module-level comments * Fix unnecessary escape of double quote * Update ninja.js * Update artifact list
1 parent 1293ec1 commit 062c387

File tree

184 files changed

+15559
-14434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+15559
-14434
lines changed

jscomp/stdlib-406/Compflags

Lines changed: 0 additions & 30 deletions
This file was deleted.

jscomp/stdlib-406/Makefile.nt

Lines changed: 0 additions & 16 deletions
This file was deleted.

jscomp/stdlib-406/StdlibModules

Lines changed: 0 additions & 72 deletions
This file was deleted.

jscomp/stdlib-406/arg.resi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
Examples ([cmd] is assumed to be the command name):
2020
- [cmd -flag ](a unit option)
2121
- [cmd -int 1 ](an int option with argument [1])
22-
- [cmd -string foobar ](a string option with argument [\"foobar\"])
22+
- [cmd -string foobar ](a string option with argument ["foobar"])
2323
- [cmd -float 12.34 ](a float option with argument [12.34])
24-
- [cmd a b c ](three anonymous arguments: [\"a\"], [\"b\"], and [\"c\"])
24+
- [cmd a b c ](three anonymous arguments: ["a"], ["b"], and ["c"])
2525
- [cmd a b -- c d ](two anonymous arguments and a rest option with
2626
two arguments)
2727
*/
@@ -53,9 +53,9 @@ type rec spec =
5353

5454
| /** If the remaining arguments to process
5555
are of the form
56-
[[\"-foo\"; \"arg\"] @ rest] where \"foo\" is
56+
[["-foo"; "arg"] @ rest] where "foo" is
5757
registered as [Expand f], then the
58-
arguments [f \"arg\" @ rest] are
58+
arguments [f "arg" @ rest] are
5959
processed. Only allowed in
6060
[parse_and_expand_argv_dynamic]. */
6161
Expand(string => array<string>)
@@ -84,7 +84,7 @@ type anon_fun = string => unit
8484
list.
8585

8686
For the user to be able to specify anonymous arguments starting with a
87-
[-], include for example [(\"-\", String anon_fun, doc)] in [speclist].
87+
[-], include for example [("-", String anon_fun, doc)] in [speclist].
8888

8989
By default, [parse] recognizes two unit options, [-help] and [--help],
9090
which will print to standard output [usage_msg] and the list of

0 commit comments

Comments
 (0)