From 7e9f79430815ae750809c1f34da761e74600d26d Mon Sep 17 00:00:00 2001 From: AFaurholt Date: Sat, 20 Mar 2021 18:18:32 +0100 Subject: [PATCH 1/8] added more modules --- doc/lib.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/lib.rst b/doc/lib.rst index 3202c5a53a602..3ec5ad8d9f133 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -249,6 +249,9 @@ Generic Operating System Services (also called *console*). The implementation simply uses ANSI escape sequences and does not depend on any other module. +* `rdstdin `_ + This module contains code for reading from stdin. On UNIX the linenoise library is wrapped and set up to provide default key bindings (e.g. you can navigate with the arrow keys). On Windows system.readLine is used. This suffices because Windows' console already provides the wanted functionality. + Math libraries -------------- @@ -354,6 +357,12 @@ Parsers * `json `_ High-performance JSON parser. +* `jsonutils `_ + This module implements a hookable (de)serialization for arbitrary types. Design goal: avoid importing modules where a custom serialization is needed; see strtabs.fromJsonHook,toJsonHook for an example. + +* `parsejson `_ + This module implements a json parser. It is used and exported by the json standard library module, but can also be used in its own right. + * `lexbase `_ This is a low-level module that implements an extremely efficient buffering scheme for lexers and parsers. This is used by the diverse parsing modules. @@ -471,6 +480,13 @@ Miscellaneous * `std/varints `_ Decode variable-length integers that are compatible with SQLite. +* `enumerate `_ + This module implements enumerate syntactic sugar based on Nim's macro system. + +* `with `_ + This module implements the with macro for easy function chaining. See ``_ and ``_ for details leading to this particular design. + + Modules for JS backend ---------------------- @@ -569,3 +585,12 @@ Network Programming and Internet Protocols * `openssl `_ Wrapper for OpenSSL. + + + +Unstable +======== + +* `atomics `_ + Types and operations for atomic operations and lockless algorithms. + From ffe6d1ebc532ed22a72c66e9e17fc3fc89429de8 Mon Sep 17 00:00:00 2001 From: AFaurholt Date: Sun, 21 Mar 2021 13:22:52 +0100 Subject: [PATCH 2/8] Update doc/lib.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> --- doc/lib.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/lib.rst b/doc/lib.rst index 3ec5ad8d9f133..a8f0544313f0b 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -250,7 +250,7 @@ Generic Operating System Services sequences and does not depend on any other module. * `rdstdin `_ - This module contains code for reading from stdin. On UNIX the linenoise library is wrapped and set up to provide default key bindings (e.g. you can navigate with the arrow keys). On Windows system.readLine is used. This suffices because Windows' console already provides the wanted functionality. + This module contains code for reading from stdin. Math libraries @@ -593,4 +593,3 @@ Unstable * `atomics `_ Types and operations for atomic operations and lockless algorithms. - From 3239db32ed330e0abce9d06c950e7ecaa128200d Mon Sep 17 00:00:00 2001 From: AFaurholt Date: Sun, 21 Mar 2021 13:23:02 +0100 Subject: [PATCH 3/8] Update doc/lib.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> --- doc/lib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lib.rst b/doc/lib.rst index a8f0544313f0b..6e3c5748f4211 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -358,7 +358,7 @@ Parsers High-performance JSON parser. * `jsonutils `_ - This module implements a hookable (de)serialization for arbitrary types. Design goal: avoid importing modules where a custom serialization is needed; see strtabs.fromJsonHook,toJsonHook for an example. + This module implements a hookable (de)serialization for arbitrary types. * `parsejson `_ This module implements a json parser. It is used and exported by the json standard library module, but can also be used in its own right. From f1f6888372592e2470ac906c9c117c06d5cb9b7a Mon Sep 17 00:00:00 2001 From: AFaurholt Date: Sun, 21 Mar 2021 13:23:10 +0100 Subject: [PATCH 4/8] Update doc/lib.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> --- doc/lib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lib.rst b/doc/lib.rst index 6e3c5748f4211..1824b8193177f 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -361,7 +361,7 @@ Parsers This module implements a hookable (de)serialization for arbitrary types. * `parsejson `_ - This module implements a json parser. It is used and exported by the json standard library module, but can also be used in its own right. + This module implements a JSON parser. It is used and exported by the `json` standard library module, but can also be used in its own right. * `lexbase `_ This is a low-level module that implements an extremely efficient buffering From 4fc58ca65a9dd57c56614d81f38477f828c2a7e9 Mon Sep 17 00:00:00 2001 From: AFaurholt Date: Sun, 21 Mar 2021 13:23:16 +0100 Subject: [PATCH 5/8] Update doc/lib.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> --- doc/lib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lib.rst b/doc/lib.rst index 1824b8193177f..47bbe06863e99 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -481,7 +481,7 @@ Miscellaneous Decode variable-length integers that are compatible with SQLite. * `enumerate `_ - This module implements enumerate syntactic sugar based on Nim's macro system. + This module implements `enumerate` syntactic sugar based on Nim's macro system. * `with `_ This module implements the with macro for easy function chaining. See ``_ and ``_ for details leading to this particular design. From 06e81b137604237084daf511e246412dad430a81 Mon Sep 17 00:00:00 2001 From: AFaurholt Date: Sun, 21 Mar 2021 13:23:25 +0100 Subject: [PATCH 6/8] Update doc/lib.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> --- doc/lib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lib.rst b/doc/lib.rst index 47bbe06863e99..528595aec7f68 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -484,7 +484,7 @@ Miscellaneous This module implements `enumerate` syntactic sugar based on Nim's macro system. * `with `_ - This module implements the with macro for easy function chaining. See ``_ and ``_ for details leading to this particular design. + This module implements the `with` macro for easy function chaining. From bb8868ac28afee8b2076c1c3590358f83cfb3001 Mon Sep 17 00:00:00 2001 From: AFaurholt Date: Sun, 21 Mar 2021 13:47:31 +0100 Subject: [PATCH 7/8] listed alphabetically + link to json module --- doc/lib.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/lib.rst b/doc/lib.rst index 528595aec7f68..2aedd02fb30ed 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -357,12 +357,9 @@ Parsers * `json `_ High-performance JSON parser. -* `jsonutils `_ +* `std/jsonutils `_ This module implements a hookable (de)serialization for arbitrary types. -* `parsejson `_ - This module implements a JSON parser. It is used and exported by the `json` standard library module, but can also be used in its own right. - * `lexbase `_ This is a low-level module that implements an extremely efficient buffering scheme for lexers and parsers. This is used by the diverse parsing modules. @@ -377,6 +374,9 @@ Parsers * `parsecsv `_ The `parsecsv` module implements a simple high-performance CSV parser. +* `parsejson `_ + This module implements a JSON parser. It is used and exported by the `json `_ module, but can also be used in its own right. + * `parseopt `_ The `parseopt` module implements a command line option parser. @@ -465,6 +465,9 @@ Miscellaneous * `coro `_ This module implements experimental coroutines in Nim. +* `std/enumerate `_ + This module implements `enumerate` syntactic sugar based on Nim's macro system. + * `logging `_ This module implements a simple logger. @@ -480,10 +483,7 @@ Miscellaneous * `std/varints `_ Decode variable-length integers that are compatible with SQLite. -* `enumerate `_ - This module implements `enumerate` syntactic sugar based on Nim's macro system. - -* `with `_ +* `std/with `_ This module implements the `with` macro for easy function chaining. From d1980b4456c2db1651db18940af0035a19ab7f3d Mon Sep 17 00:00:00 2001 From: AFaurholt Date: Sun, 21 Mar 2021 14:54:43 +0100 Subject: [PATCH 8/8] Added suggestion #17430 --- doc/lib.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/lib.rst b/doc/lib.rst index 2aedd02fb30ed..a9dca2ad95ab2 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -249,9 +249,6 @@ Generic Operating System Services (also called *console*). The implementation simply uses ANSI escape sequences and does not depend on any other module. -* `rdstdin `_ - This module contains code for reading from stdin. - Math libraries -------------- @@ -519,6 +516,7 @@ Regular expressions expressions. The current implementation uses PCRE. + Database support ---------------- @@ -535,6 +533,13 @@ Database support for other databases too. +Generic Operating System Services +--------------------------------- + +* `rdstdin `_ + This module contains code for reading from stdin. + + Wrappers ========