summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* improved comment satement support in macros (#5904)Arne Döring2017-06-022-1/+2
|
* fix right shift c codegen bug. (#5919)Parashurama2017-05-311-3/+4
| | | | | | * 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.
* Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2017-05-311-0/+2
|\
| * Creating and setting comment nodes in macros (#5850)Fredrik Høisæther Rasch2017-05-311-0/+2
| | | | | | | | | | | | | | * 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
* | improve confusing error messages for failed overloading resolution when ↵Araq2017-05-311-1/+7
|/ | | | deref of first arg failed
* a few tiny cleanups (#5712)Jacek Sieka2017-05-294-30/+12
| | | exposes emitLazily (for nlvm) and simplifies some conditionals
* Merge pull request #5823 from markus-oberhumer/ascii127-is-not-printableVarriount2017-05-262-2/+2
|\ | | | | Ascii character code 127 (DEL) is not printable.
| * Ascii character code 127 (DEL) is not printable.Markus F.X.J. Oberhumer2017-05-162-2/+2
| |
* | niminst: add missing nimsuggest tool; small koch.nim cleanupAraq2017-05-171-0/+2
| |
* | Merge branch 'araq2' into develAraq2017-05-1723-313/+656
|\ \
| * | cleanup of in/out covariance handlingAndreas Rumpf2017-05-175-35/+32
| | |
| * | Merge branch 'zahary' into araq2Andreas Rumpf2017-05-1714-78/+293
| |\ \
| | * | fix affecting templates with explicit generic paramsZahary Karadjov2017-05-132-28/+8
| | | |
| | * | fix tinvalidinoutZahary Karadjov2017-05-131-3/+0
| | | |
| | * | work-around for defining imported types with weak covarianceZahary Karadjov2017-05-131-0/+16
| | | |
| | * | enforce the covariance rules for user-defined generic typesZahary Karadjov2017-05-135-17/+105
| | | |
| | * | covariance for arrays and sequencesZahary Karadjov2017-05-121-12/+40
| | | |
| | * | doh, forgot to add all files in the previous commitZahary Karadjov2017-05-124-15/+65
| | | |
| | * | support for external types with covariant generic paramsZahary Karadjov2017-05-086-3/+34
| | | |
| | * | fix 5756Zahary Karadjov2017-04-301-1/+1
| | | |
| | * | a simple way to simulate covariance in generic typesZahary Karadjov2017-04-281-1/+6
| | | |
| | * | Allow tyOr,tyAnd and tyNot to be constructed in more contextsZahary Karadjov2017-04-282-16/+36
| | | |
| * | | Merge branch 'zahary' into araq2Andreas Rumpf2017-05-1617-240/+371
| |\| | | | |/ | |/|
| | * fix a regrsesion in signature matching of derived ptr typesZahary Karadjov2017-04-181-3/+5
| | |
| | * Restore the compilation of linalg by tweaking the complex disambiguation rulesZahary Karadjov2017-04-161-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is a potentially breaking change, but the problem was that linalg was relying on a previous bug in the compiler, which was fixed in the concepts branch. With the old disambiguation rules, generic procs like: proc \`==\`[T](lhs, rhs: T) and proc \`==\`(lhs, rhs: Matrix32|Matrix64) .. were considered equal, even though it's obvious that the second one should be preferred. We never noticed this, because there was a bug in sigmatch incorrectly counting one of the params of the second proc as a non-generic match, thus giving it an edge. This commit gives some preference to tyOr and tyAnd during the complex disambiguation, which may affect overload resolution in other cases. I see this only as a temporary solution. With my upcoming work on concept refinement, I plan to provide an experimental implementation of alaternative C++-like rules for determining which proc is more specific. We can then discuss our strategy for dealing with such a breaking change.
| | * fix regression in tmatrixconceptZahary Karadjov2017-04-161-0/+4
| | |
| | * fix compilation regression in aleaZahary Karadjov2017-04-163-12/+4
| | |
| | * fix a compilation error in linalgZahary Karadjov2017-04-161-25/+23
| | |
| | * fix #5689Zahary Karadjov2017-04-152-10/+13
| | |
| | * fix #5683Zahary Karadjov2017-04-142-6/+10
| | |
| | * fix a parsing regression (do is still mandatory in some situations)Zahary Karadjov2017-04-141-1/+4
| | |
| | * wipZahary Karadjov2017-04-111-4/+5
| | |
| | * lift parameter-less do block to lambdasZahary Karadjov2017-04-106-15/+27
| | |
| | * support post expression blocks in return and yieldZahary Karadjov2017-04-101-1/+3
| | |
| | * fix a regression in tlexerexZahary Karadjov2017-04-101-13/+14
| | |
| | * adapt quote to the new parsing rulesZahary Karadjov2017-04-101-8/+11
| | |
| | * fix a parsing regression (calls with do inside param lists)Zahary Karadjov2017-04-101-2/+5
| | | | | | | | | | | | | | | This treatment is applied only when "do" is used, because the code foo(x: bar) is recognized as object construction.
| | * fully consisent parsing between the new and the old 'do blocks'Zahary Karadjov2017-04-101-78/+67
| | |
| | * the new blocks without 'do' produce compatible AST with 'do blocks'Zahary Karadjov2017-04-091-4/+4
| | |
| | * fix the do notation when used with procsZahary Karadjov2017-04-096-11/+12
| | |
| | * fix #5643; fix #5644Zahary Karadjov2017-04-083-7/+12
| | |
| | * Restore the Nim's 0.14 proper handling of generic aliasesZahary Karadjov2017-04-088-55/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * fix #5658Zahary Karadjov2017-04-072-4/+14
| | |
| | * fix #5654Zahary Karadjov2017-04-072-2/+5
| | |
| | * fix #5642Zahary Karadjov2017-04-073-3/+6
| | |
| | * fix #5648Zahary Karadjov2017-04-071-2/+4
| | |
| | * wip fix #5640Zahary Karadjov2017-04-072-1/+3
| | |
* | | Fixes #5821 (float32 literal comparison issue) (#5825)Dominik Picheta2017-05-172-4/+6
| | | | | | | | | | | | * Remove processing hints for async procs. * Fixes #5821.
* | | Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2017-05-162-4/+7
|\ \ \
| * | | Async macro fixes (#5739)Yuriy Glukhov2017-05-161-0/+3
| | | |