summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* removing warning imported and not used debugutils (#17660)rockcavera2021-04-071-1/+2
|
* fixes #17656 (#17657)Andreas Rumpf2021-04-071-1/+2
|
* add compiler/debugutils.nim to help debugging compiler (#17652)Timothee Cour2021-04-062-7/+35
| | | | | * add compiler/debugutils.nim * address comments
* fix #16898 #17621 (#17628)flywind2021-04-062-3/+6
| | | | | | * fix #16898 * fix #17621 * Update compiler/semtypes.nim
* fix #14850: `repr` now correctly renders `do` (#17623)Timothee Cour2021-04-031-7/+13
| | | | | | | * fix #14850: `repr` now correctly renders `do` * add tests * fix test
* repr: fix rendering of `'big`, `=destroy` etc (#17624)Timothee Cour2021-04-031-3/+19
|
* implement RFCs/294 ; disallow enum <=> enum conversion (#16351)Timothee Cour2021-04-033-5/+10
| | | | | | | | | | | * fix https://github.com/nim-lang/RFCs/issues/294 ; disallow enum <=> enum conversion * fix the runnableExamples that was the instigator of this RFC * legacy -d:nimLegacyConvEnumEnum * use -d:nimLegacyConvEnumEnum in important_package nimgame2 * add test for enum cast * improve changelog * add changelog: Changes affecting backward compatibility * cleanup changelog * fix changelog
* fix #17615(runnableExamples silently ignored if placed after some code) (#17619)flywind2021-04-021-15/+18
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* enable syntax highlighting for inline code (#17585)Andrey Makarov2021-04-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * enable syntax highlighting for inline code * finish '.. default-role' and preliminary '.. role' implementation * more compact check in dirRole * set :literal: as default role for *.rst * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * use whichRole for setting currRoleKind * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename rnGeneralRole -> rnUnknownRole Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* a bit better message (#17606)flywind2021-04-011-2/+2
|
* misc fixes: build_all.sh, changelog (#17601)Timothee Cour2021-04-011-1/+1
| | | | | | | * fix a bug in build_all.sh: $@ => "$@" * remove getSocket from changelog following #17587 * remove unused import
* docgen: render pragmas by default except for a select list (and fix #9074) ↵Timothee Cour2021-04-013-13/+33
| | | | (#17054)
* fix #17190 `nimscript` now accepts arbitrary file extensions for `nim e ↵flywind2021-04-012-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | main.customext` (#17596) * fix #17190 * cah * merge * Update tnimscriptwithnimext.nim * Update tnimscriptwithmacro.nims * Apply suggestions from code review * Delete tnimscriptwithnimext.nim * Update tests/tools/tnimscriptwithmacro.nims * fix * fix * add a test * Apply suggestions from code review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Apply suggestions from code review * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* better error messages for .raise effect analysis (#17595)Andreas Rumpf2021-03-311-5/+7
|
* fix #17572 (#17586)Timothee Cour2021-03-311-1/+2
|
* fix #14585, fix #17589: access to static param now works (#17590)Timothee Cour2021-03-312-2/+2
|
* fix #12282 distinct now does not create erroneous copy in VM (#17594)Timothee Cour2021-03-311-2/+12
|
* makes DrNim compile again (#17584)Andreas Rumpf2021-03-301-1/+2
|
* parser.nim: simply layout changeAraq2021-03-301-1/+2
|
* fix #17512 (#17520)flywind2021-03-301-1/+8
|
* unify tuple expressions (#13793)Arne Döring2021-03-304-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unify tuple expressions * fix test * fix test * apply feedback * Handle empty tuples * Fix rendering named unary tuple * Protect static NimNode against stripping * Slightly less hacky * Revert "Slightly less hacky" This reverts commit 170c5aec0addc029f637afbc948700ca006b7942. * Slightly less hacky * Cleanup * Fix test * Fix another test * Add condsym * Rebase fallout * changelog: Move from compiler changes to language changes * Add stricter tests * Add empty tuple example to doc/astspec * Fix test Co-authored-by: Clyybber <darkmine956@gmail.com>
* Fix #17412 (#17560)Clyybber2021-03-293-29/+50
| | | | | * Fix #17412 * Address review
* [nim check]fix #17460 (#17569)flywind2021-03-291-0/+2
|
* fix https://github.com/nim-lang/RFCs/issues/352: show top-level import for ↵Timothee Cour2021-03-291-9/+16
| | | | | | | | | top-level runnableExamples in generated docs (#17542) * fix https://github.com/nim-lang/RFCs/issues/352: show top-level import for top-level runnableExamples in generated docs * use canonical imoprt * fix test
* added nkError to the AST (#17567)Andreas Rumpf2021-03-294-1/+87
| | | | | | | | | | | | | * added nkError to the AST * Update lib/core/macros.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update compiler/ast.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Typo in vm.nimClyybber2021-03-291-1/+1
|
* Add `hasClosure` to `std/typetraits` (#17501)flywind2021-03-291-0/+4
| | | | | | | | | | | | | | | | * fix nim js cmp fails at CT * Add `hasClosure` to `std/effecttraits` * type * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/std/effecttraits.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #17437 - crash where error reporting > 1 (#17547)Saem Ghani2021-03-291-4/+12
| | | | | | | | | | | * fixes #17437 * Fix bug reference comment Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * [skip ci] describe why we have hasError Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Fixed embedded nimscript imports (#17425)Jason Beetham2021-03-281-3/+4
|
* followup custom literals (#17500)Timothee Cour2021-03-273-14/+13
|
* IC: bugfix (#17533)Andreas Rumpf2021-03-272-6/+7
| | | | * cleanups * IC: bugfix
* nnkArglist => nnkArgList + special case stylecheck:error (#17529)Timothee Cour2021-03-272-6/+8
| | | | | * nnkArglist => nnkArgList * special case stylecheck:error
* Fix #17199 (#17348)Clyybber2021-03-261-3/+4
| | | | | | | | | | | | | | | | | | | | | | * don't zero out in a move in the VM * Add testcases for #17199 * Update tests/arc/tarcmisc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/vm/tissues.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Fix test failures * Fix test * Fix tests Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* added a 'koch ic' command for easier adhoc testing of IC (#17508)Andreas Rumpf2021-03-266-11/+77
| | | | | | * added a 'koch ic' command for easier adhoc testing of IC * IC: progress * IC: enable generics test * make tests green
* remove unnecessary check (#17502)flywind2021-03-251-2/+0
|
* custom integer literals bugfixes (#17499)Andreas Rumpf2021-03-241-4/+5
| | | | | * custom integer literals bugfixes * make nimsuggest compile again
* custom integer literals (#17489)Andreas Rumpf2021-03-245-189/+199
| | | | | | | * user defined integer literals; refs #17020 * updated renderer.nim * use mlexerutils helper * imported all test cases from https://github.com/nim-lang/Nim/pull/17020 * final grammar updated
* potential fix for semgeneric formal params (#17494)Saem Ghani2021-03-243-2/+8
| | | | marked locations where analysis of return formal param is done prior to args. This might fix some subtle bugs.
* make unary minus part of number literals, refs #17020 (#17488)Andreas Rumpf2021-03-242-33/+56
| | | | * make unary minus part of number literals, refs #17020 * fixes regression
* [isolation]fix empty ref object bug (#17471)flywind2021-03-241-2/+6
| | | | | | | | | | | | | * fix nim js cmp fails at CT * [Minor]fix empty ref object for isolation * Update compiler/isolation_check.nim * Update compiler/isolation_check.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* fixes #16076 (#17486)Andreas Rumpf2021-03-231-1/+2
|
* Fixes #17450 (#17477)Clyybber2021-03-231-0/+1
| | | | | * Fixes #17450 * Add missing test output
* Revert "Fixes #17450 (#17474)" (#17476)Clyybber2021-03-231-1/+0
| | | This reverts commit 5f0c52048970cb7449937bd19191638c9e9f0c8f.
* Fixes #17450 (#17474)Clyybber2021-03-231-0/+1
| | | | | * Fixes #17450 * Add missing test output
* fix #16973 ; nim doc now shows correct, canonical import name in title (#16999)Timothee Cour2021-03-232-18/+36
| | | | * nim doc now shows correct import name in title
* IC: backend: remember produced type information (#17440)Andreas Rumpf2021-03-239-42/+93
|
* refs #17292 fix `repr` with `do:` (#17449)Timothee Cour2021-03-231-3/+10
| | | | | * refs #17292 fix `repr` with `do:` * address comment
* hint:cc goes to stderr (like all other hints) instead of stdout (#17465)Timothee Cour2021-03-221-8/+7
| | | Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com>
* semTemplateDef and t17433 clean-ups (#17448)Saem Ghani2021-03-223-39/+41
| | | | | - use `doAssert` in t17433 - use setGenericParamsMisc in semTemplateDef akin to semProcAux - pragma handling in semTemplateDef inline with semProcAux
* Fixes #17433; gensym callDef return in templ body (#17445)Saem Ghani2021-03-221-1/+1
|