Commit graph

135 commits

Author SHA1 Message Date
Zahary Karadjov
5bcf8bcb59 fixes #7222; fixes #5595; fixes #3747
* late instantiation for the generic procs' default param values
* automatic mixin behaviour in concepts

Other fixes:

* don't render the automatically inserted default params in calls
* better rendering of tyFromExpr
2018-06-16 16:46:32 +03:00
Andreas Rumpf
a1bd4a6cbd nimpretty: first version that seems useful for others to test it 2018-06-16 01:46:39 +02:00
Araq
8e9551b1c7 fixex merge conflicts 2018-06-08 19:50:36 +02:00
Andreas Rumpf
3cbc07ac78
Merge pull request #7770 from yglukhov/yield-in-try
Yield in try
2018-06-05 19:58:00 +02:00
Andreas Rumpf
18a3833d60 more refactoring 2018-05-27 15:22:17 +02:00
Andreas Rumpf
669a564492 remove more global variables in the Nim compiler 2018-05-27 11:10:56 +02:00
Andreas Rumpf
e55a1051ea fixes yet another index out of bounds issue in renderer.nim 2018-05-21 19:53:52 +02:00
Araq
dc809bd485 fixes yet another indexing bug caused by the strict strings 2018-05-21 14:22:02 +02:00
Yuriy Glukhov
cfe40a3e6e Merge branch 'devel' into yield-in-try 2018-05-15 19:54:52 +03:00
Andreas Rumpf
328e7a1005 options.nim: no global variables anymore 2018-05-13 17:52:21 +02:00
Andreas Rumpf
0d56dd4677 big refactoring: magicsys compiles again 2018-05-10 13:12:42 +02:00
Yuriy Glukhov
d71f69ab50 Closure iter transformation 2018-05-09 22:25:27 +03:00
Andreas Rumpf
1aa359febb warn about inconsistent spacing around binary operators; fixes #7582 2018-05-05 14:58:33 +02:00
Dmitry Atamanov
82275e3779 Fix renderer's errors (#7742)
* Fix renderer's errors

* Same for filter_tmpl

* var -> let
2018-05-01 19:45:38 +02:00
Andreas Rumpf
e3e18b277c renderer.nim: bugfix 2018-04-29 01:03:24 +02:00
Oscar Nihlgård
8caf257607 Don't escape multibyte characters (#7570) 2018-04-23 11:09:48 +02:00
Araq
9bc963508f nimpretty: next steps 2018-04-18 21:30:38 +02:00
Andreas Rumpf
47335aab41 introduce nkTupleConstr AST node for unary tuple construction; breaking change 2018-04-13 17:45:58 +02:00
Arne Döring
abfcbaa74c fewer temporary string allocations for the compiler's renderer (#7484) 2018-04-04 08:46:35 +02:00
Andreas Rumpf
437caf4358 Merge branch 'devel' into nimv2 2018-01-08 20:04:25 +01:00
Andreas Rumpf
c924fac5c8 fixes #7019 2018-01-08 18:22:18 +01:00
Andreas Rumpf
e4081a7201 preparations for language extensions: 'sink' and 'lent' types 2018-01-07 23:09:26 +01:00
Araq
cf259fbd1c fixes #6972 2017-12-29 20:01:49 +01:00
Araq
218679fc95 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-21 10:03:56 +01:00
Araq
ee67a67ac4 first steps in adding template/macro calls to stack traces 2017-12-21 10:03:33 +01:00
Mathias Stearn
07fe1aa655 Use escape sequences rather than hex in string/char literals (#6941)
This should makes documentation easier to read for people who haven't
committed the ascii table to memory.
2017-12-18 17:49:49 +01:00
Araq
e06d76669a renderer.nim: fixes a long standing bug that kept triple string literals from being rendered properly 2017-12-17 13:15:19 +01:00
Araq
34f07d10f2 renderer.nim: support for outputting symbol magics for debugging 2017-11-30 12:09:19 +01:00
Andreas Rumpf
70ea45cdba deprecated unary '<' 2017-10-29 08:37:13 +01:00
Andreas Rumpf
186e7d49d3 fixes c2nim regression; do not produce more newlines 2017-10-19 13:29:11 +02:00
Araq
604a15c0aa some progress on the nimpretty tool; still not ready 2017-10-16 00:59:51 +02:00
Andreas Rumpf
ac3e3cf2b0 fixes a renderer regression that affects c2nim 2017-10-10 11:15:18 +02:00
Andreas Rumpf
125ccd303e nimpretty bugfix 2017-10-06 08:20:56 +02:00
Andreas Rumpf
eddf9abd13 beginnings of the new nimpretty tool; still unusable 2017-10-05 08:43:22 +02:00
Araq
3ccc9c467d 'with' and 'without' are not keywords anymore 2017-09-30 18:32:44 +02:00
Andreas Rumpf
61720e0df9 breaking change: getAst strips away pointless nnkStmtList nodes; node rendering of nnkStmtList without wrong indentation 2017-09-26 10:24:14 +02:00
Andreas Rumpf
1a61c4d46d first implementation of the 'func' keyword 2017-09-23 23:22:53 +02:00
BigEpsilon
6f6e6fe4eb Fix #6295 (#6296) 2017-08-30 14:44:11 +02:00
Zahary Karadjov
9e9b289fc5 when displaying proc signatures, don't render the implicit generic params 2017-03-24 16:59:47 +02:00
Araq
3fa428c88b fixes #5467 2017-03-07 00:27:47 +01:00
Arne Döring
92c2a51bf7 removed compiler internal list implementation (#5371) 2017-02-22 17:33:12 +01:00
Araq
e6c5622aa7 removed tyArrayConstr completely from the compiler; introduced tyAlias instead in preparation for further bugfixes 2016-11-14 23:18:30 +01:00
Araq
773d17cd14 big refactoring: step 1 2016-10-31 15:34:44 +01:00
Jacek Sieka
f5c3eb6a25 clean up tyMutable remnants 2016-10-24 23:30:10 +08:00
Jacek Sieka
b3de34548d clean up tyConst remnants 2016-10-24 23:19:46 +08:00
Jacek Sieka
3cd4cf4320 remove unused stuff 2016-08-09 22:54:27 +08:00
Andreas Rumpf
d9e44873ab gensym'ed symbols are rendered with their ID for much easier debugging 2016-07-08 18:04:41 +02:00
Andreas Rumpf
4180f59b27 fixes #1713 2016-05-30 16:24:52 +02:00
Andreas Rumpf
ef99a2cf15 small bugfix for the AST renderer 2016-04-17 11:56:04 +02:00
Andreas Rumpf
dae175b3c4 fixes #3868 2016-03-04 22:41:17 +01:00