Commit Graph

2951 Commits

Author SHA1 Message Date
Andreas Rumpf
7a018007a4 fixes #4471 2016-07-12 00:50:25 +02:00
Andreas Rumpf
bcb2365dec fixes a critical JS codegen bug which caused 'importcpp' statements not to be emitted 2016-07-11 23:19:24 +02:00
Andreas Rumpf
c9ce38e56d fixes a strange JS codegen bug 2016-07-11 23:19:24 +02:00
Andreas Rumpf
51c77e09fd Merge pull request #4477 from kierdavis/4475-segfault
Fix #4475
2016-07-11 20:45:28 +02:00
Kier Davis
56015e52b9 Fix #4475
Existing implementation would append the default value for a varargs parameter (the empty array) to the end of the sons of the
nnkCall node, rather than storing it into the correct index. This left the location where it should have been stored set to
its default value of nil, causing later code that uses this node to segfault.
2016-07-11 14:53:39 +01:00
Matthew Baulch
d05e146b30 Recursively check literals for tyEmpty. 2016-07-11 19:12:05 +10:00
Andreas Rumpf
d7e172a6bc make tests green again 2016-07-10 01:17:08 +02:00
Andreas Rumpf
2247ddd12d make hint/warning work properly after Nimscript execution 2016-07-09 22:45:55 +02:00
Andreas Rumpf
5e82ffc8d5 Nimscript: added support for 'patchFile' 2016-07-09 14:26:00 +02:00
Andreas Rumpf
66f37971e9 undocumented feature: JS backend: unit and group separators generate hash and at symbols 2016-07-09 00:28:14 +02:00
Andreas Rumpf
ba273057e3 Fixes a critical JS codegen bug about @ in call pattern 2016-07-08 23:03:11 +02:00
Andreas Rumpf
e2267ef5c9 Nimscript supports hint() and warning() procs; refs #3688 2016-07-08 22:24:28 +02:00
Andreas Rumpf
089c31765f fixes #3055 2016-07-08 20:11:59 +02:00
Andreas Rumpf
1d186ee9c3 fixes #2377 2016-07-08 18:08:34 +02: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
abf1951ff0 docgen: hide pragmas 2016-07-08 15:08:55 +02:00
Andreas Rumpf
857b0c8d4c fixes #4462 2016-07-08 10:52:04 +02:00
Andreas Rumpf
b47d9b7b91 fixes #4371 2016-07-08 10:34:12 +02:00
Andreas Rumpf
e9eab32e54 new language feature: explicit 'import system' statements are allowed 2016-07-07 01:02:12 +02:00
Andreas Rumpf
17d97462cf Merge branch 'devel' of github.com:nim-lang/Nim into devel 2016-07-06 16:48:14 +02:00
Andreas Rumpf
e73fd64f38 fixes #537 2016-07-06 16:48:00 +02:00
Yuriy Glukhov
09783c3fd0 Fixed vm codegen for a call with compile-time args. Fixes #4412. 2016-07-06 14:39:57 +03:00
Andreas Rumpf
b681e91745 Merge pull request #4449 from mbaulch/fix4003
Fix #4003: Regard nil nodes as having equal type constraints.
2016-07-06 12:12:42 +02:00
Yuriy Glukhov
a76b74ed74 Repr now works in js for enums starting with non-zero. 2016-07-05 22:43:59 +03:00
Andreas Rumpf
b439e3b4d9 Merge pull request #4444 from mbaulch/devel
Fix #4275: Argument count not checked in importcpp
2016-07-05 17:42:36 +02:00
Matthew Baulch
a2301f64cd Return nil from genOtherArg after error. 2016-07-05 23:16:57 +10:00
Matthew Baulch
109c9d551f Regard nil nodes as having equal type constraints. 2016-07-05 22:56:22 +10:00
Jeff Ciesielski
16f2808439 Fix typo. Remove unnecessary proc 2016-07-05 08:26:12 -04:00
Jeff Ciesielski
4f4aafda6c Plumb {.intdefine.} and {.strdefine.} pragmas.
Shorthand so that users won't need to use the .magic pragma
2016-07-04 22:52:24 -04:00
Jeff Ciesielski
94d1aa5109 Add the ability to pass a value with the -d flag
This allows the end user to use the {.magic: "IntDefine"/"StrDefine"}
pragmas to pass values into code at compile time.  This has a nice side
effect of also allowing/requiring a default value to be assigned in the
code (see osalloc.nim/StandaloneHeapSize for an example)
2016-07-04 18:11:25 -04:00
Matthew Baulch
9a7b6af5fa Report wrong arg count when too many params and no varargs. 2016-07-05 06:14:36 +10:00
Andreas Rumpf
38de553b86 Merge pull request #4398 from vegansk/issue88
Fix generics inheritance issues
2016-06-27 09:54:43 +02:00
Anatoly Galiulin
bef7f72636 Accumulate penalties 2016-06-27 09:16:19 +06:00
Anatoly Galiulin
75cca15c65 Speedup generic relations detection 2016-06-24 15:22:22 +06:00
Anatoly Galiulin
764668d099 Fix generics inheritance issues 2016-06-23 18:37:14 +06:00
Andreas Rumpf
5f4e98bbc7 fixes #4395, getType still not entirely correct 2016-06-23 12:41:45 +02:00
Andreas Rumpf
ad8784eef0 PHP codegen: code works with PHP 5.3 (with some luck) 2016-06-23 01:45:10 +02:00
Andreas Rumpf
4b0ba5e3f1 C code generation now deterministic; fixes #4364 2016-06-22 02:50:50 +02:00
Andreas Rumpf
2405f8e347 PHP backend: proper setLen implementation 2016-06-21 11:50:24 +02:00
Eduardo Bart
48d37900a9 Fix disabling hintProcessing 2016-06-20 19:22:09 -03:00
Andreas Rumpf
95b4a9ca41 Merge pull request #4369 from Varriount/fix-4363
Fix #4393
2016-06-19 10:59:43 +02:00
Clay Sweetser
6dcaafc70c Fix #4393 2016-06-18 23:53:41 -04:00
Andreas Rumpf
50756d8859 add install_nimble.nims to the tar.xz 2016-06-15 17:15:27 +02:00
Ruslan Mustakov
a648d06ba8 Fixed rethrowing not to generate C++ throw with noCppExceptions switch 2016-06-14 13:05:28 +06:00
Andreas Rumpf
7e8c9eda45 more niminst fixes 2016-06-13 12:18:44 +02: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
fa1749d8d3 generated source code links also work when generated on Unix 2016-06-09 21:18:01 +02:00
Andreas Rumpf
76c8d6164b added 'koch testinstall' command; more installer related bugfixes 2016-06-09 17:34:57 +02:00
Araq
1f1b61f432 added missing files to the installation process 2016-06-08 23:33:15 +02:00
Andreas Rumpf
0e00ea89c4 adds missing web/ticker.html to the tarballs so that documentation building works 2016-06-08 21:32:15 +02:00