summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* fixes #15147 (#15315)Andreas Rumpf2020-09-121-1/+1
|
* Fix #15305 (#15311)Clyybber2020-09-121-2/+1
| | | | | * Fix #15305 * Fix test
* fixes #15122 (#15301)Andreas Rumpf2020-09-111-2/+15
|
* fix warnings for deprecated `low` and `high` (#15291)Miran2020-09-113-13/+13
|
* Fix #15286 (#15292)cooldome2020-09-101-0/+3
| | | | | * fix #15286 * fix spacing
* fixes #15280 [backport:1.2] (#15281)Andreas Rumpf2020-09-091-1/+1
| | | | | | | * fixes #15280 [backport:1.2] * make tests green again * adapt tests
* borrow checking refinements (#15290)Andreas Rumpf2020-09-092-5/+21
| | | * added basic borrowing test
* Better semiStmtList parsing (#15123)Clyybber2020-09-091-78/+44
| | | | | | | * Better semiStmtList parsing * Add examples from forums and wiki * Move parseIfExpr near parseIfOrWhen * Update grammar
* borrow checking (#15282)Andreas Rumpf2020-09-0916-311/+475
| | | | | | | | | | | * refactoring: move procs to typeallowed.nim * frontend preparations for first class openArray support * prepare the code generator for first class openArray * code generation for first class openArray; WIP * code generation for open arrays, progress * added isViewType proc * preparations for borrow checking * added borrow checking to the front end
* "for-loop macros" are no longer an experimental feature (#15288)Miran2020-09-082-4/+3
|
* nimeval errorHook support (#15255)Scott Wadden2020-09-071-3/+8
|
* don't raise index defects on malformed ast (#15278)Andy Davidoff2020-09-072-6/+14
| | | | | * don't raise index defects on malformed ast * style
* strict funcs: use control flow information for a more precise analysis (#15271)Andreas Rumpf2020-09-061-20/+79
| | | | | * strict funcs: use control flow information for a more precise analysis * cursor inference uses control flow information
* Expand hoisted default params in sem (#15270)Clyybber2020-09-0511-123/+103
| | | | | | | | | * Expand hoisted default params in sem Introduce ast.newTree{I,IT} Add test for default params in procs * Cleanup * Simplify hoist transformation and expand test
* fix #15238 (#15262)cooldome2020-09-041-0/+1
| | | | | * fix_15238 * fix test
* fixes system.add for strict funcs (#15259)Andreas Rumpf2020-09-031-1/+1
| | | | | * fixes system.add for strict funcs * fixes #15248
* Fix sets for architectures with default integers smaller than 32 bits ↵PMunch2020-09-021-3/+3
| | | | (#15258) [backport]
* fixes #15210 [backport:1.2] (#15237)Andreas Rumpf2020-08-311-20/+23
| | | | | * fixes #15210 [backport:1.2] * use patched version of bigints library
* Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) (#15250)Jaremy Creechley2020-08-312-3/+12
| | | | | | | | | | | | | | | | | | | * Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) Adding FreeRTOS/LwIP to compiler: * adding freertos option * dyncalls for freertos * add freertos to posix os list * adding lwip option Setting up networking FreeRTOS/LwIP Port: * setting up lwip network for freertos * fixing posix / networking for freertos * disable setInheritable for freerots * using lwip for net control items * Fix builds by ignoring lib/posix/posix_freertos_consts.nim similar to lib/posix/posix_other_consts.nim
* Big compiler Cleanup (#14777)Clyybber2020-08-2850-773/+472
|
* fix #15035 (#15236)cooldome2020-08-281-2/+3
|
* Fix #5691 (#15158)Clyybber2020-08-279-49/+65
| | | | | | | | * Fix #5691 * Cleanup and thoughts * Use scope approach * Seperate defined/declared/declaredInScope magics * Fix declaredInScope * Update spec accordingly
* fix some issues overloading with generics and inheritance (#15211)jcosborn2020-08-271-11/+34
| | | | | * fix some issues overloading with generics and inheritance * fix passing procs with subtype matches
* deleted dead code, writetracking.nim was replaced by varpartitions.nimAraq2020-08-261-275/+0
|
* avoid #8231, bitwise move to mul,div (#15070)Bung2020-08-251-2/+10
| | | | | | | | | * avoid #8231, bitwise move to mul,div * add test for #8231 * fix bitwise move when div result is float * bitwise move depends on typ.size
* better strict funcs, WIP (#15199)Andreas Rumpf2020-08-182-6/+22
| | | | | * better strict funcs, WIP * progress
* fix overloading issue with generic invocation (#15135)jcosborn2020-08-181-14/+1
| | | | | * fix overloading issue with generic alias * add test for inheritance depth
* Allow pragmas on parameters (#15178)Clyybber2020-08-111-2/+2
|
* Fix #8473 (#15169)Andreas Rumpf2020-08-1112-24/+30
|\ | | | | | | | | | | | | | | | | | | | | * Make explicit {.nimcall.} a seperate calling convention * Add testcase for #5688 * Fix bootstrapping * Remove little lies :) * Use typeflag instead
| * Use typeflag insteadClyybber2020-08-1010-18/+19
| |
| * Remove little lies :)Clyybber2020-08-081-5/+6
| |
| * Fix bootstrappingClyybber2020-08-081-3/+4
| |
| * Make explicit {.nimcall.} a seperate calling conventionClyybber2020-08-0810-16/+19
| |
* | fixes #15101 [backport] (#15171)Andreas Rumpf2020-08-081-3/+2
|/
* implement (#15153)cooldome2020-08-041-1/+1
|
* fixes a collect() bug reported on the forum (#15156) [backport:1.2]Andreas Rumpf2020-08-042-2/+2
|
* fixes #15129 [backport:1.2] (#15144)Andreas Rumpf2020-08-011-1/+1
|
* fixes #15130 (#15141)Andreas Rumpf2020-08-012-2/+6
| | | | | * fixes #15130 * you really have to copy from cursors
* fixes #15122 [backport:1.2] (#15139)Andreas Rumpf2020-08-011-0/+1
|
* fixes #15111 (#15136)Andreas Rumpf2020-08-015-24/+32
|
* fixes #15071 [backport] (#15131)Andreas Rumpf2020-07-311-3/+3
|
* fixes #15112 (#15124)Andreas Rumpf2020-07-301-8/+12
|
* cursor and mutation tracking fixes (#15113)Andreas Rumpf2020-07-306-363/+252
| | | | | | | | * fixes #15110 * fixes #15096 * prepare varpartitions for cursor inference * new cursor inference begins to work * make tests green
* fix overloading case with generic alias (#15116)jcosborn2020-07-301-1/+1
| | | | | * fix overloading case with generic alias * revert reorganization of tests
* Fix forward declaration issues in template/macro context (#15091)Clyybber2020-07-2913-93/+27
| | | | | | | | | | | | | | | | | | | | | | | * Fix forward declaration issues in template/macro context * Correct forward declaration resolving for overloads * Remove old dead code * WIP consistent gensym ids * Minimize diff * Remove obsoleted hack * Add templInstCounter to give unique IDs to template instantiations * Remove obsoleted code * Eh, init in myOpen, not myProcess... * Remove optNimV019 * Add testcase for #13484
* fixes #14616 [backport:1.2] (#15109)Andreas Rumpf2020-07-291-0/+4
|
* disable sink inference, only enable it for the stdlib. Reason: better source ↵Andreas Rumpf2020-07-281-1/+1
| | | | code compatibility (#15105)
* fixes #15076 (#15095)Andreas Rumpf2020-07-273-28/+36
|
* fix #14698 nkRecWhen caused internalAssert in semConstructFields when ↵Timothee Cour2020-07-271-1/+4
| | | | | | | | | | | generic type not mentioned in fields (#14709) * fix #14698 nkRecWhen caused internalAssert in semConstructFields when generic type not mentioned in fields * address comment * Update compiler/semtypinst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStm… ↵Bung2020-07-271-1/+10
| | | | | | | | | | | | | | | | | | | (#15078) * fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStmtListExpr; genAsgn with lvalue tyVar and rvalue tyPtr * correct logic * add test for #11354 * handle nkHiddenAddr when n.len == 1 * Update compiler/jsgen.nim * Update compiler/jsgen.nim * Apply suggestions from code review Co-authored-by: Andreas Rumpf <rumpf_a@web.de>