coffeepots
43b1ac07d4
Fix typo in "out of bounds" error message
2018-05-18 18:37:28 +01:00
Araq
5526252fa0
fixes testament compilation
2018-05-14 17:45:44 +02:00
Andreas Rumpf
297038f704
move more globals into the config object
2018-05-13 14:19:42 +02:00
Andreas Rumpf
ce859d8c16
more modules compile again
2018-05-12 16:35:59 +02:00
Andreas Rumpf
05724645f8
more modules compile again
2018-05-12 11:58:44 +02:00
Oscar Nihlgård
7cf87dfac6
VM fix for refs
2018-05-08 17:00:00 +02:00
Andreas Rumpf
b7116a28ee
compiler refactoring, pass config around explicitly
2018-05-05 18:47:29 +02:00
Andreas Rumpf
14046d975d
make tests green again
2018-04-21 17:01:33 +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
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
Arne Döring
9d4fd1f1bb
eqIdent new returns false on non identifier types ( #7629 )
2018-04-17 01:23:38 +02:00
Arne Döring
ed5b7cbac0
move eqIdent to vm.nim ( #7585 )
...
* Strutils comment changes.
* fix typo
2018-04-15 23:38:43 +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
6baca58693
Get symbol kind ( #7491 )
2018-04-11 16:48:01 +02:00
jcosborn
cc5140d8b6
reuse default ident in opcNNewNimNode (performance regression) ( #7330 )
...
* reuse default ident in opcNNewNimNode (performance regression)
* use emptyIdent as default
2018-03-14 16:13:30 +01:00
Araq
934bba5255
some progress on #7261 ; VM does not support the new backwards indexing
2018-02-28 10:13:55 +01:00
Andreas Rumpf
89782460a3
fixes #7215
2018-02-14 10:09:35 +01:00
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