Commit Graph

13670 Commits

Author SHA1 Message Date
Timothee Cour
6d910dedf0 rm web/website.ini (#9290) 2018-10-11 08:41:44 +02:00
Oscar Nihlgård
eade49d7a7 Fix OrderedSet.excl (#9287) 2018-10-11 08:40:09 +02:00
Timothee Cour
0aac5c9725 fix #9295 (#9299) 2018-10-11 08:36:36 +02:00
LemonBoy
7775b7efd1 Fix wrong heuristic in codegen (#9293)
A bare return may trigger the insertion of a genericReset.

Fixes #9286
2018-10-11 08:36:05 +02:00
xzfc
8ed3dac1dc Fix tests on NixOS (#9209) (#9285)
* Replace `/bin/sleep` with just `sleep`, i.e. use environment variable
  `$PATH` to locate binary.
* Replace `/usr/share/zoneinfo` with `$TZDIR` when it is defined,
  fallback to hardcoded path otherwise. This is the same behavior that
  Glibc2 normally have, see man 3 tzset.
2018-10-10 22:47:08 +02:00
LemonBoy
0ead36dae6 Unchecked arrays now have their own type (#9267) 2018-10-10 21:03:18 +02:00
Andreas Rumpf
0803b532f4 fixes #9263 2018-10-10 21:00:54 +02:00
eqperes
6620b5dc8d Documentation improved for math module (#9266) 2018-10-10 14:25:39 +02:00
manterolat
16a941a642 Fixes #9154 (#9193) 2018-10-10 13:17:28 +02:00
Miran
462bff48b2 Iter test: closes #3819 (#9272) 2018-10-10 10:21:38 +02:00
Timothee Cour
77f836b403 fix #9264 regression (#9265) 2018-10-09 23:48:27 +02:00
LemonBoy
32d5b80938 Fix macro expansion in expandMacros (#8998)
* Fix macro expansion in expandMacros

Running a semanticized node trough the semantic pass was a bad idea.

Fixes #7723

* Simpler smaller implementation
2018-10-09 23:24:54 +02:00
Miran
98a8868cb4 better docs for tables module (#9221)
* better docs for `tables` module

* lower case for the first sentence in docs
2018-10-09 22:39:51 +02:00
Timothee Cour
63c00d7be9 fix tests/generics/t8694.nim: runnableExamples were not run because of #9216 (#9262) 2018-10-09 21:51:51 +02:00
Miran
47828efe32 better docs for algorithm module (#9192)
* better docs for `algorithm` module

* address the comments

* small first letter in the first sentence
* last argument is reverted to be `int`
* `rotateLeft` keeps `discardable` pragma, as discussed on IRC

* another small correction
2018-10-09 21:36:51 +02:00
Miran
27e4825c62 [cleanup] remove xmldom and xmldomparser (#9234) 2018-10-09 20:58:56 +02:00
Kaushal Modi
c6dfbfc2cf Do not encode the anchors in docs (id attr in a tags) (#9261)
Update the tests too.

Fixes https://github.com/nim-lang/Nim/issues/9232.
2018-10-09 20:48:00 +02:00
hlaaf
c68ea019f9 Separate high/low/len docs for each overload (#8816) 2018-10-09 20:15:55 +02:00
Steve Kellock
173e8c4913 fixes unexpected transforming of runnableExamples (#9158) 2018-10-09 20:14:54 +02:00
LemonBoy
33458894da Fix overload resolution for pragmas evaluation (#8902)
Fixes #6448
Fixes #4384
2018-10-09 19:58:23 +02:00
LemonBoy
ee14ace5d3 Field checks for everybody (#8957)
* Field checks for JS backend

* Clean nkCall nodes with no arguments

Generating a nkEmpty in place of no arguments makes no sense form the
AST point of view and also trips up the VM codegen.

* Field checks for VM backend

* Test case for #6612

This patchset fixes #6612

* Add test case for LHS double evaluation

* Prevent LHS double-eval for JS backend

* Prevent double evaluation in VM backend
2018-10-09 19:54:12 +02:00
LemonBoy
a3fb0a769c Try/Catch support for native JS exceptions (#8955)
* Try/Catch support for native JS exceptions

* Better tests
2018-10-09 19:51:29 +02:00
LemonBoy
f98a3056c6 Fix transformation of yield in inline context (#9135)
When the loop variables are part of the envP block it is not safe to use
a nkFastAsgn.

Fixes #2656
2018-10-09 19:43:31 +02:00
Dominik Picheta
21ecf64d24 Fixes #8994. FutureStream read procedure data loss no longer occurs. (#9183)
* Fixes #8994. FutureStream read procedure data loss no longer occurs.

* Optimises the fix for #8994.
2018-10-09 19:39:12 +02:00
Arne Döring
5076fda2e2 fix for #9082 (#9089) 2018-10-09 19:37:53 +02:00
Yasuhiro Horimoto
fe19670c52 Fixes #8841 (#9101)
Modify comments for readChar and peekChar to the same as the comment for them in the source code.
2018-10-09 19:30:02 +02:00
Timothee Cour
a98b1a7764 fix #8341: add lastPathPart (#9116) 2018-10-09 19:27:31 +02:00
LemonBoy
b97a7dbf3d Make the registered passes local to the ModuleGraph (#9259)
Closes #9068
2018-10-09 19:24:02 +02:00
technicallyagd
85187d4ba3 Fixes some minor typos in nimsuggest.rst (#9223)
* Fix Minor typo in nimsuggest.rst

* Fixes two more typo in nimsuggest.rst
2018-10-09 17:45:00 +02:00
alaviss
2a31f42d35 asyncmacro: add nnkSym support for getName() (#9204)
Fixes #9201
2018-10-09 15:53:13 +02:00
LemonBoy
8a1055adce Fix range type construction in the VM (#9205)
The `range[X,Y]` representation is wrong, we use `range[X .. Y]`
instead.

Fixes #9194
2018-10-09 15:51:49 +02:00
alaviss
dad290accb os: use unlink() to remove file (#9220)
removeFile() behavior should now be consistant between Windows and POSIX

Fixes #9200
2018-10-09 15:37:36 +02:00
Kaushal Modi
c0266e1afa Fix typo in an algorithm runnableExamples (#9260)
Fixes the 'koch docs' build failure.

Ref:
b90b45b01b
2018-10-09 15:36:36 +02:00
cooldome
036c52f0b6 fixes #9222 (#9224) 2018-10-09 15:19:21 +02:00
Timothee Cour
73e6b229aa [os] clarify docs for existsDir (#9212)
* Update os.nim

* Update os.nim
2018-10-09 15:04:29 +02:00
LemonBoy
d36f98fa8b nim doc can run code blocks (#9228) 2018-10-09 14:58:40 +02:00
xzfc
505ae14f4b Codegen fix for procs taking type(nil) (#9231) 2018-10-09 14:51:34 +02:00
LemonBoy
b8d2f79ef0 Prevent the construction of recursive tyStatic types (#9256)
Fixes #9255
2018-10-09 14:26:34 +02:00
Dheepak Krishnamurthy
70018aa683 Add checks for except: body blocks (#9191) 2018-10-09 14:09:22 +02:00
jcosborn
dd65986795 fixes #4435 (#9185) 2018-10-09 13:34:03 +02:00
pqflx3
b90b45b01b Add algorithm.[sort,sorted,isSorted] overloads using 'system.cmp'. (#8778)
* Add algorithm.[sort,sorted,isSorted] overloads using 'system.cmp'. Fixes 8684.

* Change signatures to 'func'. Improve overload sort doc comments
2018-10-09 13:25:25 +02:00
Juan Carlos
bc557e4c6a HTMLGen Update, Add runnableExamples, Add HTML Tags center, details, dialog, marquee, picture, slot, summary (#9252) 2018-10-09 13:13:13 +02:00
LemonBoy
18023c023d Replace the sha1 implementation w/ a working one (#9242)
As #9239 points out the old implementation had some serious flaws.
The new implementation is a port of the MIT-licensed one used by
Chromium OS and has been tested against the FIPS-provided vectors and by
generating huge files like the ones mentioned in the issue above.

While I tried my best to take into account the existence of BE machines
the code has only been tested on a LE one.
2018-10-09 11:50:10 +02:00
Araq
66c0f7c3fb development version is 0.19.1 2018-10-09 10:31:27 +02:00
Miran
cd5049e078 [cleanup] remove web folder (#9233)
Closes #7577
2018-10-08 20:42:38 +02:00
Timothee Cour
7cadb5a65d build_all.sh fix bug introduced in https://github.com/nim-lang/Nim/pull/9145
/cc @valtron printf doesn't include trailing newline, unlike echo
2018-10-08 14:07:09 +02:00
Timothee Cour
403f5aea14 define NIM_NIL nullptr when __cplusplus >= 201103L 2018-10-08 14:05:43 +02:00
Dominik Picheta
269b957e29 Merges #8451 manually. Fixes #8099. 2018-10-03 21:25:11 -07:00
Dominik Picheta
8c2f576527 Merge pull request #9171 from flaviut/fix-9053
Use runnableExamples for nre example code where possible
2018-10-03 20:43:47 -07:00
Timothee Cour
64ae47e6f0 Update macros.nim (#9182)
* Update macros.nim

* Update macros.nim
2018-10-03 20:33:57 -07:00