summary refs log tree commit diff stats
path: root/compiler/astalgo.nim
Commit message (Collapse)AuthorAgeFilesLines
* Implements RFCs #209 (#13995)cooldome2020-04-161-0/+4
| | | | | * add test * add changelod entry Co-authored-by: cooldome <ariabushenko@bk.ru>
* Deprecate when declared(echo):echo (#13840)Juan Carlos2020-04-021-72/+72
|
* More precise error messages for uninitialized fields in the presence of ↵Zahary Karadjov2020-04-011-0/+7
| | | | inheritance
* new feature: --staticBoundChecks:on to enforce static array index checking ↵Andreas Rumpf2020-03-181-0/+1
| | | | (#10965)
* kochdocs: use a glob instead of hardcoded list; generate docs for compiler/; ↵Timothee Cour2020-01-231-2/+2
| | | | | | | bugfixes (#13221) * kochdocs: use a glob instead of hardcoded list; generate docs for compiler/; bugfixes * fixup after #13212 isRelativeTo got merged
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-97/+97
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* fixes #12196Araq2019-09-161-6/+6
|
* fixes #12174Araq2019-09-111-0/+1
|
* Small ast.nim cleanup (#12156)Clyybber2019-09-091-13/+13
| | | | | * Remove sonsLen * Use Indexable
* added a simple debugging helperAraq2019-09-081-0/+9
|
* Merge branch 'devel' into uint-range-checksAndreas Rumpf2019-09-021-2/+40
|\
| * fixes #12020 (#12106)Andreas Rumpf2019-09-021-2/+40
| |
* | squashed and merged with develArne Döring2019-08-211-3/+3
|/
* Remove immediate pragma (#11308)Arne Döring2019-05-291-25/+8
| | | | | * remove immediate from tests * remove immediate from the compiler
* fixes #10963, disallow implicit mixing of strings and ints/floats (#11292)Miran2019-05-211-2/+2
|
* Replace countup(x, y) with x .. yClyybber2019-05-071-7/+7
|
* Replace countup(x, y-1) with x ..< yClyybber2019-05-071-7/+7
|
* astalgo: use the code style that the other lines use; make debug() less verboseAraq2019-04-161-11/+11
|
* more destructor based changes (#10885)Andreas Rumpf2019-03-231-1/+1
| | | | | | | | | | | * mark user defined destructors with sfOverriden to simplify the logic * refactoring in preparation to merge liftings and generic instantiations for destructors * ast: introduce nkHiddenTryStmt for destructor generation in order to be able to optimize better the code later on * renamed 'patterns' switch to 'trmacros' as it was totally misleading before * destructors: introduce tfCheckedForDestructor flag in preparation of strict =destroy checking * test for invalid/too late destructor introductions * liftdestructors: make code robust for nimsuggest * --newruntime works for hello world again * newruntime: code generation for closures
* fixes #10807 (#10814)cooldome2019-03-121-0/+8
| | | | | * fixes #10807 * use nkAddr instead of nkHiddenAddr
* owned refs must be movedAndreas Rumpf2019-03-071-0/+3
|
* colors for debugging (not for windows) (#10786)Arne Döring2019-03-051-3/+33
|
* More depth debug proc (#10782)Arne Döring2019-03-041-89/+209
| | | | | | | | * improved output on debugType * cycle detection in debug print * debug info finally really helpful * finally usable debug info * quote enum values
* minor fix for debug on symbols (#10742)Arne Döring2019-02-261-3/+3
|
* reduce debug output (#10638)Arne Döring2019-02-131-58/+63
|
* compiler refactoring: TSymSeq is gone for goodAraq2018-12-111-3/+3
|
* IC: further progressAraq2018-12-011-9/+20
|
* improve the error message for 'attempt to redefine X'; fixes #447Andreas Rumpf2018-09-171-4/+9
|
* even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-221-17/+3
|
* Fix unsound transform pass (#8633)LemonBoy2018-08-141-0/+2
| | | | | When a `var openArray[T]` function parameter goes trough the `transformAddrDeref` pass we may lose the `var` specifier, leading to nasty crashes at runtime.
* Gdb pretty printers (#8263)Arne Döring2018-07-161-3/+3
|
* Merge pull request #8120 from krux02/basic-debuggingAndreas Rumpf2018-06-261-6/+6
|\ | | | | make basic debugging possible
| * make basic debugging possibleArne Döring2018-06-261-6/+6
| |
* | allow referencing other parameters in default parameter valuesZahary Karadjov2018-06-161-19/+23
| | | | | | | | | | | | | | | | fix #7756 fix #1201 fix #7000 fix #3002 fix #1046
* | fix #6928; fix #7208Zahary Karadjov2018-06-161-0/+9
|/
* toy program works with incremental compilationAndreas Rumpf2018-06-071-2/+1
|
* refactoring: make projectMainIdx typesafeAndreas Rumpf2018-05-271-8/+8
|
* Merge branch 'devel' into araq-big-refactoringAndreas Rumpf2018-05-271-8/+8
|\
| * fix #7883; fix #7829Zahary Karadjov2018-05-261-8/+8
| |
* | remove more global variables in the Nim compilerAndreas Rumpf2018-05-271-58/+40
| |
* | make tests green againAndreas Rumpf2018-05-181-19/+21
| |
* | preparations of making compiler/msgs.nim free of global variablesAndreas Rumpf2018-05-171-46/+46
|/
* fixes testament compilationAraq2018-05-141-8/+8
|\
| * fix a compiler crash related to the new strings in C++ modeZahary Karadjov2018-05-071-8/+8
| |
* | big refactoring: parser compiles againAndreas Rumpf2018-05-101-4/+4
|/
* minor code cleanupAndreas Rumpf2017-07-081-7/+1
|
* Fix #4020; Better handling of templates within conceptsZahary Karadjov2017-06-201-0/+2
|
* Merge pull request #5823 from markus-oberhumer/ascii127-is-not-printableVarriount2017-05-261-1/+1
|\ | | | | Ascii character code 127 (DEL) is not printable.
| * Ascii character code 127 (DEL) is not printable.Markus F.X.J. Oberhumer2017-05-161-1/+1
| |
* | fix compilation regression in aleaZahary Karadjov2017-04-161-0/+2
| |