summary refs log tree commit diff stats
path: root/compiler/astalgo.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes addr/hiddenAddr in strictdefs (#23477)ringabout2024-04-101-9/+1
|
* refactoring: no inheritance for PType/PSym (#23403)Andreas Rumpf2024-03-141-123/+0
|
* make treeToYaml print yaml (and not json) (#23082)Jacek Sieka2023-12-151-170/+3
| | | less verbose - used in nph
* type graph refactor; part 3 (#23064)Andreas Rumpf2023-12-141-40/+29
|
* Types: Refactorings; step 1 (#23055)Andreas Rumpf2023-12-121-1/+1
|
* lexer cleanups (#23037)Jacek Sieka2023-12-061-1/+1
| | | | * remove some dead code and leftovers from past features * fix yaml printing of uint64 literals
* prepare for the enforcement of `std` prefix (#22873)ringabout2023-10-291-3/+4
| | | follow up https://github.com/nim-lang/Nim/pull/22851
* Markdown code blocks migration part 9 (#22506)Amjad Ben Hedhili2023-08-191-1/+1
| | | | | * Markdown code blocks migration part 9 * fix [skip ci]
* make the name of procs consistent with the name forwards (#22424)ringabout2023-08-091-1/+1
| | | | | | | | | | | It seems that `--stylecheck:error` acts up when the name forwards is involved. ```nim proc thisOne*(x: var int) proc thisone(x: var int) = x = 1 ``` It cannot understand this at all.
* use strictdefs for compiler (#22365)ringabout2023-08-061-0/+5
| | | | | | | | | | | | | | | * wip; use strictdefs for compiler * checkpoint * complete the chores * more fixes * first phase cleanup * Update compiler/bitsets.nim * cleanup
* remove legacy code (#21134)ringabout2022-12-261-3/+0
| | | | | * remove legacy code * fixes
* fix #12122 (#21096)Bung2022-12-161-1/+1
|
* no ropes WIP (#20433)Andreas Rumpf2022-09-271-4/+6
| | | | | | | | | | | | | * refactorings in preparation for ropes elimination of the C code generator; mostly the usual ': Rope' -> 'result: var Rope' rewrite * rewrote ccgcalls.nim * refactored ccgexprs.nim * ccgliterals: refactoring * refactoring: code dealing with name mangling * refactoring: getRecordFieldsAux * ropes are strings (insert obscene joke here) * optimize JS code gen * optimizations and code improvements * more optimizations * final cleanups
* Markdown code blocks part 6 (#20292)Andrey Makarov2022-08-311-3/+2
|
* try to optimize hot spots for orc-booting compiler (#20001)flywind2022-07-121-5/+13
| | | | | | | | | | | | | | | * optimize hot spots fro orc-booting compiler * remove GC_ref * minor * remove comments * Revert "minor" This reverts commit 4965a190a2d6457044faa1442795e55bdad57602. * emulate cursor
* move assertions out of system (#19599)flywind2022-03-231-0/+3
|
* add comment to astalgo.debug (#18594)Timothee Cour2021-07-271-0/+3
|
* add test case for pure enum redefinition error within enum (fixed in recent ↵Timothee Cour2021-06-151-4/+4
| | | | | | | | | | | | | PR) (#18266) * add test case for pure enum redefinition error within enum (fixed in recent PR) * remove code duplication * Revert "remove code duplication" (would require bootstrap >= 1.4) This reverts commit 3f793874c231f847ef015e37a5fd6851f85d9675. * fixup
* Small scope refactoring (#18263)Clyybber2021-06-141-1/+2
| | | | | | | * Small scope refactoring * Add test for #10251 * Add inline where appropriate
* [docs minor]space for code-block (#16266)flywind2020-12-061-2/+2
| | | | | | | | | * [docs minor]space for code-block * correct more errors * to runnableExamples * add newline
* fix #15707 (#15870)cooldome2020-11-091-2/+2
|
* Use modern enums in compiler (#15775)cooldome2020-11-021-1/+1
|
* const view types; fixes some cases from ↵Andreas Rumpf2020-10-051-1/+8
| | | | https://github.com/nim-lang/Nim/issues/15428 (#15488)
* 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
|