Andreas Rumpf
70ea45cdba
deprecated unary '<'
2017-10-29 08:37:13 +01:00
Andreas Rumpf
02ff5f596c
implemented new experimental scriptable import mechanism
2017-10-01 23:38:23 +02:00
Andreas Rumpf
2bdbe97af1
workaround a GC/codegen issue that proves nasty to fix
2017-09-26 22:19:31 +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
Parashurama
88a5e9d88c
Fix operations on string as openarray in VM. ( #6257 )
...
* fix openarray.len for string as openArray in VM.
* fix openarray[idx] for string as openArray in VM.
* fix openarray[idx]=val for string as openArray in VM.
* add tests for passing string as openArray in VM.
* fix issue with NimNode.len
NimNode.len was also returning len for string literals.
also fix logic bug in if/elif chain.
2017-09-15 13:35:57 +02:00
Parashurama
0861249de7
Fix seq.setLen initialisation in VM ( #6224 )
2017-09-02 22:53:22 +02:00
Parashurama
f063943d5f
Vm fix zero extend proc ze/ze64 && toU32/toU16/toU8 ( #5988 )
...
* fixes ze/ze64 procs in VM.
* fixes toU8/toU16/toU32.
* add tests for ze/ze64 toU32/toU16/toU8 procs
2017-08-03 10:58:45 +02:00
Arne Döring
52f092d02b
Lineinfo change ( #6084 )
2017-07-17 08:12:15 +02:00
Arne Döring
eb8e267ff6
improved comment satement support in macros ( #5904 )
2017-06-02 01:22:21 +02:00
Fredrik Høisæther Rasch
6652ae9741
Creating and setting comment nodes in macros ( #5850 )
...
* strVal assingnable comment statement ast nodes
* Set comment instead of strVal for comment nodes
* Added test code for creating and setting comment nodes
* Modified the AST spec documentation for documentation comments
2017-05-31 13:08:08 +02:00
Andreas Rumpf
61a0eba14f
Merge branch 'zahary' into araq2
2017-05-17 15:27:04 +02:00
Andreas Rumpf
503f780676
Merge branch 'zahary' into araq2
2017-05-16 17:32:18 +02:00
Zahary Karadjov
672c24e4b8
fix affecting templates with explicit generic params
2017-05-13 20:48:44 +03:00
Andreas Rumpf
c22e0d414d
fixes an internal compiler error when json.to is used wrongly
2017-05-06 11:53:15 +02:00
Zahary Karadjov
a3f19c87fb
lift parameter-less do block to lambdas
2017-04-10 23:58:05 +03:00
Zahary Karadjov
987b522071
fix the do notation when used with procs
2017-04-09 22:59:24 +03:00
Zahary Karadjov
e9a3ffbc3d
Restore the Nim's 0.14 proper handling of generic aliases
...
A more efficient implementation is possible by restoring the old
lifting ot tyGenericInvocation to tyGenericInst in liftTypeParam,
but this fix will suffice for now.
fixes #5087
fixes #5602
fixes #5641
fixes #5570
2017-04-08 17:28:19 +03:00
Andreas Rumpf
46efaf294b
big compiler refactoring; avoid globals for multi method dispatcher generation
2017-02-22 16:27:52 +01:00
Araq
d74f734471
fixes #5352
2017-02-08 13:11:07 +01:00
Andreas Rumpf
26fb6cb073
fixes #5327
2017-02-03 17:35:58 +01:00
Parashurama
137b5f4302
fixes #4992
2017-02-02 11:33:54 +01:00
Araq
e88a0af494
fix confusing line information for macros that produce errors
2017-02-01 00:00:41 +01:00
Andreas Rumpf
93068f1ba6
avoid some compiler crashes in debug mode
2017-01-23 11:22:19 +01:00
Arne Döring
e8a00b805f
fix seq add for nim node in VM ( #5253 )
...
fixes #4821
2017-01-19 20:10:01 +01:00
Arne Döring
130f30ddb2
make quote ast a ref type ( #5246 )
...
* make quote ast a ref type
* recursive set flag isRef for quoted ast
2017-01-19 16:39:18 +01:00
Araq
9d488261df
added system.gorgeEx that includes the exitCode; refs #4874 ; fixes #1994
2017-01-07 02:38:26 +01:00
Araq
9e6fb3f696
new dependency tracking for nimsuggest
2016-11-05 01:19:23 +01:00
Araq
773d17cd14
big refactoring: step 1
2016-10-31 15:34:44 +01:00
andri lim
bd560d6a4e
fixes #4915
2016-10-27 12:22:12 +07:00
Andreas Rumpf
cceb6c625c
Merge pull request #4872 from flyx/gorgefix
...
Fixes #4871
2016-10-24 17:40:32 +02:00
Andreas Rumpf
50dc712d5e
fixes #4906
2016-10-21 09:48:57 +02:00
Andreas Rumpf
bae3baf9cc
fixes #4856
2016-10-20 15:20:27 +02:00
Felix Krause
39f03d816c
Fixes #4871
2016-10-09 18:02:48 +02:00
Andreas Rumpf
9b810b17a2
fixes #4803
2016-09-24 21:00:31 +02:00
Araq
da575bec54
VM: 'raises' in an 'except' doesn't cause an endless loop anymore
2016-09-14 19:59:32 +02:00
Andreas Rumpf
39ebe2175b
compiler almost free of deprecated expr/stmt names
2016-07-30 16:34:42 +02:00
Andreas Rumpf
60b187513e
stdlib and compiler don't use .immediate anymore
2016-07-29 23:51:01 +02:00
Andreas Rumpf
a406ebbac9
cleanup of #4113
2016-05-28 17:19:44 +02:00
James Osborn
0356f53b56
getTypeInst and getTypeImpl mostly working now and added test
2016-05-04 00:24:44 -05:00
James Osborn
d462cca21f
added getTypeInst which includes generic parameters
2016-05-04 00:24:44 -05:00
Andreas Rumpf
cbcdf12d2c
fixes #3731
2016-04-04 10:16:15 +02:00
Andreas Rumpf
86e79f5cec
fixes #3804
2016-04-04 01:41:14 +02:00
Andreas Rumpf
6e53300f83
fixes #3973
2016-04-03 22:51:22 +02:00
Andreas Rumpf
13699c596e
fixes #3872
2016-03-04 22:56:12 +01: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
Andreas Rumpf
86bb9d8b47
Merge pull request #3651 from jangko/vm_'excl'
...
fixed compile time `excl ` cause SIGSEGV #3639
2015-12-21 00:40:24 +01:00
jangko
26d02c9120
fixed VM touint conversion #2514
2015-12-19 12:53:51 +07:00
jangko
60a400eeb0
fixed compile time excl cause SIGSEGV #3639
2015-12-17 10:14:48 +07:00
Araq
1757b8466d
fixes #3546
2015-11-18 14:42:13 +01:00
Araq
aad4ed776b
allows macros to access documentation comments
2015-11-18 12:33:09 +01:00