Commit Graph

241 Commits

Author SHA1 Message Date
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
Andreas Rumpf
dfee2bf66e compiler free of old expr/stmt metatypes 2016-07-30 16:34:42 +02:00
Andreas Rumpf
b43d5148c5 --listCmd also needs to affect linking step 2016-07-13 21:26:58 +02:00
Andreas Rumpf
d7e172a6bc make tests green again 2016-07-10 01:17:08 +02:00
Eduardo Bart
48d37900a9 Fix disabling hintProcessing 2016-06-20 19:22:09 -03:00
Parashurama
6c8b06b2a3 adds --excessiveStackTrace:on|off flag for nim
display absolute file path in error messages.
2016-06-11 15:09:10 +02:00
Andreas Rumpf
4922eaa8b2 fixes #3986 2016-06-06 20:35:41 +02:00
Andreas Rumpf
0b84ee167b fixes #2159
Hints and warnings are only emitted for the main package that is compiled
2016-05-28 17:12:51 +02:00
Hans Raaf
0634486689 Fixed deprecation warnings while Nim compiles.
I just removed unsigned and changed a writeLn() call to writeLine() to
avoid the remaining deprecation warnings.
2016-01-18 18:14:50 +01:00
Araq
d673fb3911 nimsuggest: added 'chk', 'outline' and 'highlight' features 2015-11-01 23:26:31 +01:00
Adam Strzelecki
acb6a36656 msgs: One msgWriteln with optional flags
Instead of msgWriteln, outWriteln and stdoutWriteln doing essentially the same.
2015-10-22 22:09:15 +02:00
Adam Strzelecki
78568859c5 compiler/vm: Use stdout too in VM time echo
Now VM time echo outputs to stdout too, same as compile time echo, rather using
same handle as compiler diagnostics (stderr default).
2015-10-16 20:55:17 +02:00
Adam Strzelecki
abb82554b7 compiler/msgs: Default to stderr for diagnostics
Previously we were defaulting to stdout for diagnostics, which could interfere
with scripts or `nim c -r' programs outputting their results to stdout,
possibly mixing their output with compiler messages.

This change makes now Nim to be inline with other compilers emitting
diagnostics to stderr. Also now --stdout option has proper meaning making all
diagnostics to be sent to stdout instead.

NOTE: Tester now calls compiler with --stdout.
2015-10-16 20:55:17 +02:00
Araq
48036fa3d9 fixes #635 2015-10-07 10:03:47 +02:00
Dominik Picheta
bb7604c06f Improved "Execution of an external program failed" message. 2015-09-27 14:18:03 +01:00
Araq
f79ec6cdf5 make the compiler less verbose 2015-09-14 15:13:08 +02:00
Matt Sullivan
caf0cd9e05 Replace incorrect warning string. 2015-09-05 22:16:35 -05:00
Araq
dc047931bb fixes #2590; methods now require a .base annotation 2015-09-06 02:31:28 +02:00
rku
24ad2cb392 Merge branch 'devel' into coroutines 2015-08-20 17:54:55 +03:00
Ryan Gonzalez
d66cc00750 Give a nice error when no command is given 2015-08-15 17:14:19 -05:00
rku
6a7a44bbf2 cValidAssemblers -> const set
Added assembler validity check
2015-08-10 12:02:49 +03:00
rku
df0e1a515b Added fasm (external assembler) support. 2015-07-31 16:00:13 +03:00
Araq
f79e58edce don't reset the terminal when --stdout is active 2015-07-16 15:26:04 +02:00
def
db5f8d6755 Reset terminal colors before running compiled program 2015-07-10 00:48:11 +02:00