summary refs log tree commit diff stats
path: root/compiler/patterns.nim
Commit message (Collapse)AuthorAgeFilesLines
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-60/+59
| | | | | | | | | | | | | | | | | | * 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
* Small ast.nim cleanup (#12156)Clyybber2019-09-091-12/+12
| | | | | * Remove sonsLen * Use Indexable
* [refactoring] compiler: simplified markUsedAndreas Rumpf2019-08-081-1/+1
|
* Merge branch 'devel' into araq-detect-unused-importsAndreas Rumpf2019-07-181-2/+1
|\
| * [refactoring] remove unused imports in the compiler and in some stdlib modulesAraq2019-07-181-2/+1
| |
* | [feature] detect unused importsAraq2019-07-171-1/+1
|/
* rename tyExpr/tyStmt to tyUntyped/tyTyped (#11227)Arne Döring2019-05-111-2/+2
|
* Replace countup(x, y) with x .. yClyybber2019-05-071-3/+3
|
* Replace countup(x, y-1) with x ..< yClyybber2019-05-071-2/+2
|
* dfa.nim: track object/tuple field accesses more precisely; sink(o.x); ↵Araq2019-04-161-1/+1
| | | | sink(o.y) needs to compile; activate the tuple unpacking transf.nim bugfix
* fixes more nil handling regressionsAraq2018-08-131-2/+6
|
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-1/+4
|
* style improvementscooldome2018-06-121-1/+1
|
* New approachcooldome2018-06-121-1/+1
|
* more modules compile againAndreas Rumpf2018-05-121-2/+2
|
* deprecated unary '<'Andreas Rumpf2017-10-291-9/+9
|
* big compiler refactoring; avoid globals for multi method dispatcher generationAndreas Rumpf2017-02-221-1/+1
|
* fixes #4371Andreas Rumpf2016-07-081-1/+1
|
* Fixed tr pattern matching for varargsYuriy Glukhov2016-04-071-1/+1
|
* compiler: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-5/+5
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* Introduce {.noRewrite.} expr pragma disabling TRAdam Strzelecki2015-06-021-1/+3
| | | | | | | | | | | | | | Term rewriting macros/templates are currently greedy and they will rewrite as long as there is a match. So there was no way to ensure some rewrite happens only once, eg. when rewriting term to same term plus extra content. With new macro we can actually prevent further rewriting on marked expr or stmts, eg. with given example echo(...) will be rewritten just once: template pwnEcho{echo(x)}(x: expr) = {.noRewrite.}: echo("pwned!") echo "ab"
* Fix typosFederico Ceratto2015-02-151-2/+2
|
* fixes #206Araq2014-11-161-1/+1
|
* Nimrod renamed to NimAraq2014-08-281-1/+1
|
* fixes #1285Araq2014-06-301-1/+1
|
* 'nil' as a statement is deprecated, use an empty 'discard' insteadAraq2014-01-191-2/+2
|
* case consistency part 4Araq2013-12-271-6/+6
|
* improvements for TR macrosAraq2013-09-171-9/+0
|
* lazy paths for Babel supportAraq2012-12-111-0/+9
|
* constraint now part of the parameter symbol and not of the typeAraq2012-12-051-2/+2
|
* tr macros now documentedAraq2012-09-101-1/+1
|
* first steps to deprecate 'nil' statementAraq2012-09-091-3/+0
|
* tmatrix.nim works nowAraq2012-09-081-9/+21
|
* term rewriting improvementsAraq2012-09-081-25/+59
|
* activated tests for tr macrosAraq2012-09-061-13/+18
|
* bugfixes and improvements for term rewriting macrosAraq2012-09-041-10/+19
|
* further improvements for term rewriting macrosAraq2012-09-041-20/+11
|
* term rewriting macros fully implemented; still buggyAraq2012-09-031-44/+156
|
* next steps towards term rewriting macros; simple examples workAraq2012-08-301-5/+11
|
* first steps towards term rewriting macrosAraq2012-08-301-0/+128