Commit Graph

4125 Commits

Author SHA1 Message Date
Andreas Rumpf
b503ca03f6 refactoring: move 'argument' global into config object 2018-04-24 11:58:18 +02:00
Andreas Rumpf
ee366f1746 .experimental can now be used to enable specific features 2018-04-24 09:34:29 +02:00
Andreas Rumpf
3e5192b5da compiler: remove unnecessary FileIndex type conversions 2018-04-24 09:34:29 +02:00
Andreas Rumpf
ba86b09e69 remove obsolete nimrod.cfg configuration files 2018-04-24 09:34:29 +02:00
Oscar Nihlgård
8caf257607 Don't escape multibyte characters (#7570) 2018-04-23 11:09:48 +02:00
Jacek Sieka
72dfe176f5 remove dead code elimination option (#7669) 2018-04-23 11:02:38 +02:00
Araq
a8b70c5500 remove unused error messages 2018-04-22 23:16:14 +02:00
Andreas Rumpf
34b333b140 make tests green again 2018-04-22 07:10:55 +02:00
Andreas Rumpf
07f4e8a4ed new 'var T' error messages with hyperlinks; closes #7373 2018-04-22 00:12:43 +02:00
Andreas Rumpf
b43025b754 fixes #5113 2018-04-21 23:58:24 +02:00
Andreas Rumpf
14e496fab0 fixes #6393 2018-04-21 22:49:15 +02:00
Andreas Rumpf
14046d975d make tests green again 2018-04-21 17:01:33 +02:00
Andreas Rumpf
e44c6d8337 refactoring: remove dead code 2018-04-21 17:01:33 +02:00
Andreas Rumpf
33b69f0ed0 refactoring: make FileIndex a distinct type; make line information an uint16; fixes #7654 2018-04-21 08:13:37 +02:00
Andreas Rumpf
6667362c2f refs #7586; show surounding source also for hints and warnsings 2018-04-20 08:54:56 +02:00
Andreas Rumpf
9cc8fec370 replace --advanced by --fullhelp; refs #7621 2018-04-20 08:45:03 +02:00
tersec
262aafa0a9 https://reproducible-builds.org/ support via SOURCE_DATE_EPOCH (#7644) (#7661) 2018-04-20 07:04:50 +02:00
jcosborn
7e15d5134b allow setting template/macro recursive evaluation limits (#7652)
* allow setting template/macro recursive evaluation limits

* revert setting template/macro eval limits
set them to 1000
2018-04-19 22:39:18 +02:00
Andreas Rumpf
cb03ae2c9f semstmts: fewer empty lines 2018-04-19 08:54:23 +02:00
Araq
9bc963508f nimpretty: next steps 2018-04-18 21:30:38 +02:00
Araq
a230307b48 little progress on nimpretty 2018-04-18 21:30:38 +02:00
treeform
35b0cc67e8 Remove PHP backend. (#7606)
* remove php

* fix

* keep nimphpext

* remove targetJS enum
2018-04-18 20:40:11 +02:00
Arne Döring
9d4fd1f1bb eqIdent new returns false on non identifier types (#7629) 2018-04-17 01:23:38 +02:00
Oscar Nihlgård
c4d7cc3da0 Generate populationCount const at compile time (#7583) 2018-04-16 21:52:27 +02:00
Arne Döring
ed5b7cbac0 move eqIdent to vm.nim (#7585)
* Strutils comment changes.

* fix typo
2018-04-15 23:38:43 +02:00
Andreas Rumpf
ed9c28484a docutils: make ':test:' work without argument 2018-04-15 22:16:07 +02:00
AdrianV
0ce28d15cc Nim namespace for cpp (#7453)
- new option --usenamespace to generate nim cpp code in its own namespace Nim
- minor changes for compatibility with the new Embarcadero = Borland C++-Builder (bcc)
2018-04-15 13:43:01 +02:00
Andreas Rumpf
c08efb4c51 implements first version of for-loop macros 2018-04-15 01:07:28 +02:00
Andreas Rumpf
a30b52eb64 fixes #7610 2018-04-14 15:44:05 +02:00
RSDuck
3d1d163eff fixes #7451 (#7575) 2018-04-14 08:33:36 +02:00
Andreas Rumpf
9e884c31dd the new feature's name is hotCodeReloading 2018-04-13 23:48:56 +02:00
Andreas Rumpf
d7cc9016f3 fixes #4470 2018-04-13 23:41:31 +02:00
zah
e3037a2f33 Support code hot reloading for JavaScript projects (#7362)
* Support code hot reloading for JavaScript projects

* Add some missing JavaScript symbols and APIs

* fix the Travis build

* (review changes) remove the js type from the standard library as it doesn't follow NEP-1

* more additions to the DOM module

* Follow NEP-1 in jsffi; spell 'hot code reloading' correctly

* introduce a jscore module

* Document jscore module.

* readded js type

* Remove the '$' operator that doesn't behave
2018-04-13 19:08:43 +02:00
Andreas Rumpf
47335aab41 introduce nkTupleConstr AST node for unary tuple construction; breaking change 2018-04-13 17:45:58 +02:00
Zahary Karadjov
10142e4a80 Fix some usages of typedesc in async procs
This also fixes a compilation error in modules, based only on the
new async module (i.e. not importing the full asyncdispatch)
2018-04-13 13:31:55 +03:00
Oscar Nihlgård
f6df2d9956 Sub second time resolution (#6978)
* Add deprecation warnings to recently deprecated procs

* Fix bad usage of the times module

* Introduce sub second resolution

* Fix usage of C's time()

* Switch to nanosecond resolution

* Make Time & Duration opaque again and fix some errors

* Change back to TimeInterval for shorthands

* Fix JS test

* Fix build error for windows

* Undeprecate epochTime

* Documentation and minor changes

* Lots of bugfixes and doc comments

* Attempt to make travis & appveyor green

* Fix edge cases for dealing with the local timezone

* Workaround JS backend overflow/underflow bug

* Use better workaround for not knowing the size of time_t

* Use all available timezones for tests

* Fix indentation

* Add procs for accessing the fractional part of a duration

* Order time units from smallest to largest since it makes more sense

* Include months and years in `TimeUnit`

* Review fix
2018-04-13 07:36:30 +02:00
Andreas Rumpf
ea8afebf8c 'func' is now an alias for 'proc .noSideEffect' 2018-04-12 20:09:44 +02:00
Andreas Rumpf
a17d45c2c2 fixes #3948 2018-04-12 20:09:44 +02:00
PMunch
4f1725ad61 Add column number to instantiation info (#7376)
* Add column number to instantiation info

Instantiation info left out column number for no good reason. This adds
it in as the third element of the tuple.

* Fix test that failed and added change to changelog

An assertion test failed because it was declaring a type that was
expected to be populated by instantiationInfo with the old signature.

Also added the changes to the changelog as it is a breaking change.
2018-04-12 20:02:04 +02:00
Jacek Sieka
85e21158db Cleanups 20180401 (#7458) 2018-04-12 17:35:10 +02:00
genotrance
c3cc52087f Added a few useful os calls to VM (#7440) 2018-04-12 13:59:14 +02:00
cooldome
19aad4f547 quick bug fix (#7576) 2018-04-12 08:00:54 +02:00
Andreas Rumpf
29d2c34956 fixes #2779 2018-04-11 23:36:04 +02:00
Andreas Rumpf
4c5351a1eb fixes #6895 2018-04-11 23:26:20 +02:00
Arne Döring
6baca58693 Get symbol kind (#7491) 2018-04-11 16:48:01 +02:00
Federico Ceratto
1ee5f1e36a Enable RISC-V 64bit platform (#7541)
Related to  #7417
2018-04-11 16:45:37 +02:00
Andreas Rumpf
4887f64107 concepts: do not report concept parameters as unused 2018-04-11 14:02:24 +02:00
genotrance
f6c8f97fe8 Add a few useful os calls to nimscript (#7442) 2018-04-10 18:50:23 +02:00
cooldome
16c1a90857 Cpp codegen: handling of imported exceptions. Fixes #3571 (#7360) 2018-04-10 12:14:59 +02:00
Oscar Nihlgård
427490a845 Fix compile time set cardinality (#7558) 2018-04-10 10:38:16 +02:00