Commit graph

364 commits

Author SHA1 Message Date
Andreas Rumpf
a8a544a8f7 avoid more global variables 2018-05-11 15:01:28 +02:00
Andreas Rumpf
7eb39d9d26 guards.nim does compile 2018-05-11 13:07:16 +02:00
Andreas Rumpf
0d56dd4677 big refactoring: magicsys compiles again 2018-05-10 13:12:42 +02:00
Andreas Rumpf
61e57cfa13 big refactoring: parser compiles again 2018-05-10 10:49:51 +02:00
Andreas Rumpf
eef12654bd compiler/msgs.nim: minor code cleanup 2018-05-05 15:07:13 +02:00
Andreas Rumpf
1aa359febb warn about inconsistent spacing around binary operators; fixes #7582 2018-05-05 14:58:33 +02:00
Andreas Rumpf
48aee47bf6 compiler: code cleanup 2018-05-02 13:34:54 +02:00
Andreas Rumpf
6dbfdecd74 make msgs.nim more robust 2018-04-30 12:07:12 +02:00
Araq
a8b70c5500 remove unused error messages 2018-04-22 23:16:14 +02:00
Andreas Rumpf
07f4e8a4ed new 'var T' error messages with hyperlinks; closes #7373 2018-04-22 00:12:43 +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
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
Araq
9bc963508f nimpretty: next steps 2018-04-18 21:30:38 +02:00
Araq
9de05ec3e0 further steps in implementing sink parameters; refs #7041 2018-03-30 02:32:13 +02:00
Araq
4301744e49 raise the max instruction count for the VM to one billion 2018-03-18 11:04:53 +01:00
Araq
046ed4ed22 symbol files: implemented accurate module dependency tracking 2018-02-21 00:48:23 +01:00
Araq
ef6eda4cb4 better error messages: use <T1, T2> instead of (T1, T2) in order to prevent confusions with tuple types 2018-02-10 20:55:21 +01:00
Andreas Rumpf
e2cf3b94f2 improve the error message for thread local variables 2018-02-05 08:47:35 +01:00
Andreas Rumpf
c1679edad2 fixes #7080 2018-02-04 07:23:47 +01:00
cooldome
2b3ec0a7c6 Implement language feature #6885 (#6954) 2017-12-24 22:22:03 +01:00
Araq
3bd6b7ddc7 improve the error messages for bug #6692 2017-11-05 02:51:20 +01:00
Araq
604a15c0aa some progress on the nimpretty tool; still not ready 2017-10-16 00:59:51 +02:00
Andreas Rumpf
eddf9abd13 beginnings of the new nimpretty tool; still unusable 2017-10-05 08:43:22 +02:00
Arne Döring
52f092d02b Lineinfo change (#6084) 2017-07-17 08:12:15 +02:00
Markus F.X.J. Oberhumer
a0f39e0ab4 Ascii character code 127 (DEL) is not printable and must be quoted. (#5984)
This is a follow-up to #5823.
2017-06-15 20:42:23 +02:00
Zahary Karadjov
0aede22e87 enforce the covariance rules for user-defined generic types 2017-05-13 14:38:07 +03:00
Zahary Karadjov
5e368f3639 support for external types with covariant generic params 2017-05-08 21:45:37 +03:00
Zahary Karadjov
fe48dd1cbe further improvements to the error messages produced by concepts 2017-03-24 16:59:47 +02:00
Zahary Karadjov
74a80988d9 proper error reporting for concepts and the introduction of the {.explain.} pragma 2017-03-24 16:59:47 +02:00
Zahary Karadjov
0f2c4be129 infer static parameters even when more complicated arithmetic is involved 2017-03-24 16:58:15 +02:00
Andreas Rumpf
4912300ca7 Merge branch 'devel' into faster-nimsuggest 2017-03-14 10:18:20 +01:00
zah
1be0022e7c Fixes #5167 and related problems (#5475)
This commit returns to a bit less strict checking of the number
of macro arguments, because some old immediate macros rely on a
behavior where even the arity of the macro is not being checked.

It may be better if such macros are just declared to use varargs[expr],
but this remains for another day.
2017-03-12 09:33:49 +01:00
zah
6e358e3187 don't allow casting to non-concrete types; fixes #5428 (#5502) 2017-03-12 09:27:05 +01:00
Araq
4755795416 nimsuggest: more precise cursor tracking 2017-03-09 14:58:14 +01:00
Araq
1887390b0f nimsuggest: fixes nimsuggest bug #45; do not show suggestions in string literals or comments 2017-03-08 12:53:21 +01:00
Andreas Rumpf
6c0304f7f5 nimsuggest chk works for EPC 2017-03-03 11:59:00 +01:00
Andreas Rumpf
a9c1afd5fd nimsuggest: structured error reporting; EPC mode still fails 2017-03-03 02:13:16 +01:00
Araq
e78bd69619 C codegen: escape '?' because C has trigraphs 2017-02-27 16:16:14 +01:00
Andreas Rumpf
895e2aea15 Merge pull request #5317 from rokups/feature/coroutines
Coroutine improvements
2017-02-26 23:24:29 +01:00
Andreas Rumpf
46efaf294b big compiler refactoring; avoid globals for multi method dispatcher generation 2017-02-22 16:27:52 +01:00
Rokas Kupstys
96c571dd96 Removed fasm support. 2017-02-20 17:24:19 +02:00
Andreas Rumpf
2a22dc7787 nimsuggest improvement: don't die because of illformed ASTs 2017-02-06 20:40:27 +01:00
jlp765
4acc84f081 Gramma change: casted or Casted to cast or Cast respectively
past tense of cast is cast not casted :-)
2016-12-17 12:33:57 +10:00
Andreas Rumpf
01ae0d28d4 recursive modules are only detected to improve error messages 2016-11-24 12:27:21 +01:00
Araq
074f276c8a disallow recursive module dependencies 2016-11-23 23:23:31 +01:00
Federico Ceratto
7d24656b0a Fix few typos 2016-10-17 13:12:15 +01:00
Andreas Rumpf
d8223d6645 disable warnUninit for --verbosity:2 2016-10-01 09:08:02 +02:00
Andreas Rumpf
976e95e17c fixes #4580 2016-08-26 15:49:03 +02:00
Jacek Sieka
3cd4cf4320 remove unused stuff 2016-08-09 22:54:27 +08:00