Andreas Rumpf
42c9bb3ace
fixes #5933
2017-06-03 21:08:32 +02:00
Andreas Rumpf
d1f5e3b110
fixes #4139
2017-06-03 14:30:16 +02:00
zah
39aef12446
review and merge zahary's work ( #5849 )
...
* proper indentation for the generated JS code
* improved dead-code elimination for JavaScript
* test the JS dead-code elimination
A new test spec has been added - "maxcodesize". It specifies the
maximum size of the generated code in bytes.
2017-06-03 12:45:10 +02:00
Arne Döring
eb8e267ff6
improved comment satement support in macros ( #5904 )
2017-06-02 01:22:21 +02:00
Parashurama
da52ade86e
fix right shift c codegen bug. ( #5919 )
...
* fix right shift c codegen bug.
signed int must first be cast as unsigned before converting to larger
integer. The C compiler will auto convert operands to the largest type.
2017-05-31 21:05:14 +02:00
Araq
7b3785554f
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-31 14:35:53 +02:00
Araq
68d606d773
improve confusing error messages for failed overloading resolution when deref of first arg failed
2017-05-31 14:34:46 +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
Jacek Sieka
ba4cc4bf35
a few tiny cleanups ( #5712 )
...
exposes emitLazily (for nlvm) and simplifies some conditionals
2017-05-29 09:42:26 +02:00
Varriount
fd0ab1df3e
Merge pull request #5823 from markus-oberhumer/ascii127-is-not-printable
...
Ascii character code 127 (DEL) is not printable.
2017-05-26 02:29:00 -04:00
Araq
d3f0f87e81
niminst: add missing nimsuggest tool; small koch.nim cleanup
2017-05-17 23:59:53 +02:00
Araq
8f67b90997
Merge branch 'araq2' into devel
2017-05-17 22:13:57 +02:00
Andreas Rumpf
7a95c961a7
cleanup of in/out covariance handling
2017-05-17 20:54:53 +02:00
Dominik Picheta
06415eb69d
Fixes #5821 (float32 literal comparison issue) ( #5825 )
...
* Remove processing hints for async procs.
* Fixes #5821 .
2017-05-17 15:57:06 +02:00
Andreas Rumpf
61a0eba14f
Merge branch 'zahary' into araq2
2017-05-17 15:27:04 +02:00
Araq
943aaecbe7
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-16 22:09:37 +02:00
Yuriy Glukhov
6599cae281
Async macro fixes ( #5739 )
2017-05-16 22:09:19 +02:00
Araq
ac3e7edfe4
weaken the rules for proc definition pragmas that have been forwarded
2017-05-16 22:07:44 +02:00
Markus F.X.J. Oberhumer
8d3f477fad
Create correct C protoypes in genMainProc. ( #5822 )
...
This avoids a -Wstrict-prototypes warning in the generated C file.
2017-05-16 21:04:12 +02:00
Markus F.X.J. Oberhumer
87888e8129
Ascii character code 127 (DEL) is not printable.
2017-05-16 18:09:24 +02:00
Andreas Rumpf
503f780676
Merge branch 'zahary' into araq2
2017-05-16 17:32:18 +02:00
jcosborn
ec50dab57d
fixed macros.getTypeImpl for a symbol of type tyGenericBody ( #5788 ) ( #5812 )
...
* fixed macros.getTypeImpl for a symbol of type tyGenericBody
* added test case and commented test code
2017-05-14 15:08:41 +02:00
Zahary Karadjov
672c24e4b8
fix affecting templates with explicit generic params
2017-05-13 20:48:44 +03:00
Zahary Karadjov
05bfa47996
fix tinvalidinout
2017-05-13 18:51:28 +03:00
Zahary Karadjov
b428da2cc2
work-around for defining imported types with weak covariance
2017-05-13 15:46:08 +03:00
Zahary Karadjov
0aede22e87
enforce the covariance rules for user-defined generic types
2017-05-13 14:38:07 +03:00
Zahary Karadjov
f4e73344d4
covariance for arrays and sequences
2017-05-12 18:42:46 +03:00
Zahary Karadjov
a802d72452
doh, forgot to add all files in the previous commit
2017-05-12 12:46:09 +03:00
Parashurama
2e420dfa38
fixes multiple nil-checks for methods ( #5806 )
2017-05-12 11:21:43 +02:00
Ruslan Mustakov
29507d2491
Consider optNoCppExceptions in blockLeaveActions ( #5801 )
2017-05-11 22:30:48 +02:00
Yuriy Glukhov
6e0e3b75cf
Fixed const sets in JS ( #5790 )
2017-05-10 09:29:30 +02:00
Zahary Karadjov
5e368f3639
support for external types with covariant generic params
2017-05-08 21:45:37 +03:00
Andreas Rumpf
c22e0d414d
fixes an internal compiler error when json.to is used wrongly
2017-05-06 11:53:15 +02:00
Andreas Rumpf
c1aa973758
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-04 10:58:21 +02:00
Araq
6377b52d8e
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-05-02 01:24:19 +02:00
Araq
bea07a2c5c
fixes #5752
2017-05-02 01:24:10 +02:00
Andreas Rumpf
962d03d671
isDeepConstExpr helper can handle nkRange
2017-05-01 09:31:29 +02:00
Andreas Rumpf
56a5c249c9
JS codegen: produce better code for constant sets
2017-05-01 09:30:56 +02:00
Zahary Karadjov
2a34552596
fix 5756
2017-04-30 22:28:20 +03:00
Zahary Karadjov
c981284ddc
a simple way to simulate covariance in generic types
2017-04-28 17:40:57 +03:00
Zahary Karadjov
bc01835091
Allow tyOr,tyAnd and tyNot to be constructed in more contexts
2017-04-28 17:07:54 +03:00
Andreas Rumpf
3d34a9f6d3
js codegen: emit more line information
2017-04-26 12:50:36 +02:00
Andreas Rumpf
920888f382
fixes tuple unpacking regression
2017-04-26 11:10:50 +02:00
Andreas Rumpf
2da66fef77
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-04-26 10:28:03 +02:00
Andreas Rumpf
7b1568d19c
make -d:nimdiff feature more robust
2017-04-26 10:27:42 +02:00
Araq
05c20bc4ff
fixes a parser bug
2017-04-25 19:36:05 +02:00
cooldome
c6a8bd264e
Fix for #5695 make subscript operator overloadable for tuples ( #5749 )
2017-04-24 20:17:06 +02:00
Andreas Rumpf
1aede6d311
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-04-24 10:00:53 +02:00
Andreas Rumpf
7cba41db23
make nimble compile again
2017-04-22 14:58:53 +02:00
Andreas Rumpf
3f5ababfe8
make sighashes work in more cases
2017-04-21 17:01:57 +02:00