hlaaftana
1ef945668d
treat do with pragmas but no parens as proc ( #19191 )
...
fixes #19188
2021-12-05 06:44:22 +01:00
PMunch
c658de24b0
Improve documentation around func and method ( #19207 )
...
* Improve documentation around func and method
* Update doc/tut1.rst
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update doc/tut1.rst
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Rewrite of Zooms suggestion
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
2021-12-04 07:54:11 +01:00
Andreas Rumpf
23c117a950
misc bugfixes [backport:1.2] ( #19203 )
2021-12-04 07:42:34 +01:00
Andreas Rumpf
a0073d2d4c
renamed 'gc' switch to 'mm'; [backport:1.6] ( #19187 )
...
* renamed 'gc' switch to 'mm'; [backport:1.6]
* better docs
2021-11-24 15:49:32 +01:00
hlaaftana
5933aece9b
caseStmtMacros no longer experimental, experimental manual refactor (#19173 )
...
* `caseStmtMacros` no longer experimental, experimental manual refactor
* Update doc/manual.rst
* apply review suggestions
* apply review
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-11-23 16:30:17 +01:00
Andrey Makarov
040d23e799
implement RST & Markdown quote blocks ( #19147 )
...
* implement RST & Markdown quote blocks
* compile with nim 1.0
* Fix indentation
2021-11-23 13:02:03 +01:00
Jaremy Creechley
7772ca303c
Implement threads on Zephyr ( #19156 )
...
* pthreads setup for zephyr
- enable tweak stack size
- update lib/system/threads.nim
- Fix int/uint in casting pointer.
* add documentation and tweak flag names
* add documentation and tweak flag names
* fix configuration flag names
* fix configuration flag names
* cleanup
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com >
2021-11-23 09:13:03 +01:00
hlaaftana
1b143f5e79
Accept nnkTypeSection from typedef macro pragmas ( #19168 )
2021-11-22 10:41:35 +01:00
Jaremy Creechley
92d6fb86c6
Enable customizing PageShift to set PageSize for embedded targets ( #19129 )
...
* Enable customizing PageSize (via PageShift).
This enables adjusting PageSize for embedded targets without abusing
cpu16.
* copy nimPageXYZ settings for mmpaptest
* add docs for Nim manual
* add docs for Nim manual
* docs tweaks
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com >
2021-11-16 20:30:07 +01:00
flywind
3aaa12dbe5
update manual ( #19130 ) [backport]
2021-11-12 07:59:48 +01:00
treeform
a78ee8ae84
Call {.cursor.} a pragma. ( #19116 )
...
* Call {.cursor.} a pragma.
Its hard to find .curser annotation while googling because all other things like it are called pragmas. See https://nim-lang.org/docs/manual.html#pragmas
Also the . in front of the name makes it hard to find and search for.
Can we just call it cursor pragma?
* Small fix for comment.
2021-11-10 08:52:34 +01:00
konsumlamm
46fb855425
Deprecate std/sharedlist and std/sharedtables ( #19112 )
2021-11-09 19:00:43 +01:00
Andrey Makarov
b21eb1ed36
change os.nim doc links to new style ( #19102 )
2021-11-08 13:10:01 +01:00
Kaushal Modi
dbbafd320c
manual: Document that comma propagates the default values of parameters ( #19080 )
...
* manual: Document that comma propagates the default values of parameters
Fixes https://github.com/nim-lang/Nim/issues/15949 .
* Use the "bug #NNNN" comment syntax for consistency
Ref:
https://nim-lang.github.io/Nim/contributing.html#writing-tests-stdlib
> Always refer to a GitHub issue using the following exact syntax: bug
for tooling.
2021-11-03 08:08:50 +01:00
Kaushal Modi
5fed1c05ce
manual: Document the use of static as a proc call ( #19084 )
...
* manual: Document the use of `static` as a proc call
Also adds tests.
Fixes https://github.com/nim-lang/Nim/issues/16987 .
* Update doc/manual.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Use the "bug #NNNN" comment syntax for consistency
Ref:
https://nim-lang.github.io/Nim/contributing.html#writing-tests-stdlib
> Always refer to a GitHub issue using the following exact syntax: bug
for tooling.
* manual: Undocument usage of foo.static
foo.static and foo.static() are not expected to work.
Ref: https://github.com/nim-lang/Nim/pull/19084/files#r741203578
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-11-03 06:48:30 +01:00
Derek 呆
24a7584299
update numbers of lifetime-tracking hooks in doc/destructors.rst ( #19088 )
2021-11-02 08:55:50 +01:00
Andrey Makarov
7ba2659f73
docgen: implement doc link resolution in current module ( #18642 )
2021-10-28 19:20:52 +02:00
Derek 呆
cd2b093d07
fix a tiny code snippet formatting issue in doc/constructors.rst, again ( #19065 )
2021-10-28 09:35:57 +02:00
Derek 呆
ee65767d44
fix a tiny formating issue in doc/destructors.rst ( #19058 )
2021-10-27 11:45:05 +02:00
quantimnot
3ecb369ca1
Document file changes that may be needed for add a new platform ( #19055 )
...
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
2021-10-26 08:33:26 +02:00
Abishek PY
d634587423
feat: copy to clipboard ( #18963 )
...
* feat: copy to clipboard
* fix: CI failure related issue
* fix: CI failure issue
* fix: copy to clipboard button bug
* feat: copy pragmadots value to clipboard
2021-10-22 12:10:32 +02:00
quantimnot
9fc2918314
Document how to compile a reproducible build ( #18953 )
...
* Make compiler build more reproducible
Removed the compile time from the version output.
Added Git commit's author's datetime in UTC timezone.
Fixes #18508
See https://reproducible-builds.org/docs/timestamps/
See https://reproducible-builds.org/docs/source-date-epoch/
* Revert "Make compiler build more reproducible"
This reverts commit 2f9359ae89 .
Documented how to use compile reproducible builds with the
`SOURCE_DATE_EPOCH` environment variable.
* Corrected `readme.md` formatting
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
2021-10-06 09:41:42 +02:00
Andreas Rumpf
500d5f0f38
typo [backport] ( #18948 )
2021-10-04 12:34:29 +02:00
Andreas Rumpf
c3dd53bb2c
typos [backport] ( #18929 )
2021-09-30 11:35:42 +02:00
flywind
8bdb985395
fix wrong name (rnimsyn => renderer; pnimsyn => parser; scanner => lexer) ( #18895 )
...
* fix wrong module name
* rephrase more word
2021-09-25 13:22:00 +02:00
Miran
561b01004c
[backport] change some examples in tut1.rst ( #18884 )
...
* [backport] change some examples in tut1.rst
* Update doc/tut1.rst
* Update doc/tut1.rst
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-09-24 11:24:55 +02:00
Andreas Rumpf
ca51bb8fd9
documented overload disambiguation [backport] ( #18865 )
...
* documented overload disambiguation [backport]
* Update doc/manual.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* documented overload disambiguation [backport]
* documented overload disambiguation [backport]
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-09-19 18:31:55 +02:00
Andreas Rumpf
179fad934d
doc improvements ( #18843 )
...
* cleaned up destructors documentation [backport]
* Spec updates [backport:1.0]
2021-09-13 11:05:09 +02:00
Andreas Rumpf
2e2d928846
formal grammar updates [backport:1.2] ( #18803 )
2021-09-04 19:52:57 +02:00
flywind
b3ad68edea
remove channels ( #18801 )
...
* remove channels
* test
2021-09-04 15:57:02 +02:00
Andreas Rumpf
686096a912
documented overloadable enums and changelog improvements ( #18797 )
2021-09-04 12:52:24 +02:00
Andreas Rumpf
cddf8ec6f6
implements https://github.com/nim-lang/RFCs/issues/407 ( #18793 )
2021-09-03 21:52:24 +02:00
Andreas Rumpf
c2b20516d3
implemented Unicode operators ( #18789 )
...
* implemented Unicode operators; refs https://github.com/nim-lang/RFCs/issues/388
* bugfix
* better test
* arguably more elegant implementation
* Update changelog.md
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-09-03 17:31:16 +02:00
Andreas Rumpf
e0ef859130
strict effects ( #18777 )
...
* fixes #17369
* megatest is green for --cpu:arm64
* docgen output includes more tags/raises
* implemented 'effectsOf'
* algorithm.nim: uses new effectsOf annotation
* closes #18376
* closes #17475
* closes #13905
* allow effectsOf: [a, b]
* added a test case
* parameters that are not ours cannot be declared as .effectsOf
* documentation
* manual: added the 'sort' example
* bootstrap with the new better options
2021-09-02 12:10:14 +02:00
konsumlamm
0ddd9519c0
Remove Covariance section from the experimental manual ( #18688 )
...
* Remove `Covariance` section
* Add blank lines after `.. code-block::`
* Fix CI?
2021-08-29 10:42:52 +02:00
Timothee Cour
3aa16c1de0
fix RFC #341 : dot-like operators are now parsed with same precedence as . ( #18711 )
...
* fix RFC #341 : dot-like operators are now parsed with same precedence as `.`
* fixup
* [skip ci] address comment in changelog
* address comment
* update grammmar
* add manual entry
* fixup
* -d:nimPreviewDotLikeOps
* address comment to unblock PR: move nimPreviewDotLikeOps out of config/config.nims
2021-08-25 06:50:40 +02:00
flywind
5b26f2bd81
fix deprecated example ( #18721 )
2021-08-21 08:22:00 +02:00
flywind
e52221e296
[docs]fix an item missing ( #18717 )
2021-08-20 20:00:04 +02:00
Timothee Cour
1acba63cb7
cross compilation targetting windows now supports nim r: nim r -d:mingw main ( #18682 )
...
* cross compilation targetting windows now supports `nim r`: `nim r -d:mingw main`
* quoteShell
* address comment: remove `conf.getConfigVar("nimrun.exe")`
2021-08-16 09:32:12 +02:00
Andreas Rumpf
4463a3c3d7
manual: minor improvements ( #18687 )
2021-08-13 12:34:28 +02:00
RSDuck
d0dd923acf
Switch maintanance ( #18668 )
...
* Fix and improve Nintendo Switch support
* Document the necessity for nimAllocPagesViaMalloc
* update changelog
* Use --gc:orc in examples
2021-08-11 08:54:49 +02:00
Juan Carlos
2cddf7fc96
Documentation only, add 1 example ( #18621 )
...
* ReSync with Devel
* ReSync
* Documentation only, add 1 example to For loop macro
* Flip it
* Update doc/manual.rst
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-08-08 19:26:34 +02:00
Juan Carlos
6563a685c1
Documentation only, add 1 example ( #18633 )
2021-08-03 09:16:33 -07:00
Andrey Makarov
bbe05c1532
docgen: draw frame around active anchors ( #18607 )
2021-07-29 13:30:19 +02:00
konsumlamm
1bba641fed
Update lib.rst ( #18605 )
...
* Update lib.rst
* Remove "Unstable" category
Add `strbasics`
* Update doc/lib.rst
* Update doc/lib.rst
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-07-29 10:50:17 +02:00
GordonBGood
37f5f0d7d0
Clarify use of import via pseudo dir... ( #18569 )
2021-07-27 09:38:30 +02:00
Andreas Rumpf
0c4582c665
mitigates #12815 ( #18557 )
...
* mitigates #12815
* Update doc/nimc.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-07-22 11:59:21 +02:00
Andreas Rumpf
58e27ebd4a
fixes #12815 ( #18554 )
2021-07-22 09:37:41 +02:00
Andreas Rumpf
01fc9e58ca
fixes #18550 ( #18553 )
...
* fixes #18550
* update the manual to reflect reality
2021-07-21 16:55:50 +02:00
Andreas Rumpf
f86a530214
breaking changes policies ( #18541 )
...
* document some std library evolution policies
In wanting to improve the standard library, it's helpful to have a set
of principles and guidelines to lean back on, that show how to introduce
such improvements while at the same time considering existing users of
the language.
A key idea behind documentation of this sort is that it should highlight
a path forwards in making changes rather than trying to prevent them,
and although the current snippet does include some language for what one
shouldn't do, it also shows a few options for what one can do.
This is a riff on https://github.com/nim-lang/Nim/pull/18468 mainly
based on what helps enable to the use of Nim productively in
environments and teams where the priority and focus is not always on the
tool (Nim in this case) but rather on the codebase itself, and its use
by end users.
We use similar guidance documentation to help coordinate the code of the
teams using Nim in https://status-im.github.io/nim-style-guide/ where it
is applied not as law, but rather as recommendations for the default
approach that should be considered first.
* document the new policies
* typo
* Update doc/contributing.rst
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update doc/contributing.rst
* Update doc/contributing.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/contributing.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/contributing.rst
* Update doc/contributing.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* clarify some things
* Update doc/contributing.rst
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
Co-authored-by: Jacek Sieka <arnetheduck@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-07-21 10:22:30 +02:00