Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | getTypeImpl now returns pragmas for object types (#9538) | jcosborn | 2018-10-30 | 1 | -0/+18 |
| | |||||
* | More descriptive names of test files (#9531) | Miran | 2018-10-29 | 2 | -0/+0 |
| | | | | | * change generic `tissues` name to more specific * change `tvarious` to more specific names | ||||
* | Change the order of compilation passes, transformation is made lazy at code ↵ | cooldome | 2018-10-18 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | gen (#8489) * Ast no transformation * Add getImplNoTransform to the macros module * progress on delaying transf * Fix methods tranformation * Fix lazy lambdalifting * fix create thread wrapper * transform for lambda lifting * improve getImplTransformed * Fix destructor tests * try to fix nimprof for linux | ||||
* | added test case for `or` operator | Arne Döring | 2018-10-18 | 1 | -0/+14 |
| | |||||
* | merge macros tests (#9367) | Miran | 2018-10-14 | 17 | -373/+352 |
| | |||||
* | compiler: show name of instantiating context in error traces (#6763) (#9207) | xzfc | 2018-10-11 | 1 | -1/+1 |
| | |||||
* | Unchecked arrays now have their own type (#9267) | LemonBoy | 2018-10-10 | 1 | -0/+4 |
| | |||||
* | Fix macro expansion in expandMacros (#8998) | LemonBoy | 2018-10-09 | 1 | -0/+19 |
| | | | | | | | | | | * Fix macro expansion in expandMacros Running a semanticized node trough the semantic pass was a bad idea. Fixes #7723 * Simpler smaller implementation | ||||
* | Fix overload resolution for pragmas evaluation (#8902) | LemonBoy | 2018-10-09 | 1 | -1/+1 |
| | | | | Fixes #6448 Fixes #4384 | ||||
* | Fix range type construction in the VM (#9205) | LemonBoy | 2018-10-09 | 1 | -0/+20 |
| | | | | | | The `range[X,Y]` representation is wrong, we use `range[X .. Y]` instead. Fixes #9194 | ||||
* | add tcollect test for the new for-loops as expressions feature | Andreas Rumpf | 2018-09-11 | 1 | -0/+63 |
| | |||||
* | Renderer bug fixes (#8804) | cooldome | 2018-09-07 | 1 | -1/+46 |
| | | | | | | Fixes #8763: render bug: pure enums not handled correctly Fixes #8762: render bug: binary operators called with quotes rendered incorrectly FIxes #8761: render bug: inversion of operator priorities | ||||
* | Add sym owner to macros (#8253) | cooldome | 2018-09-03 | 1 | -1/+30 |
| | |||||
* | Do not materialize empty varargs[untyped] arrays (#8715) | LemonBoy | 2018-08-31 | 1 | -0/+21 |
| | | | | | | | | | When an empty nkArgList `varargs[untyped]` is passed around it is now reused for efficiency sake and to prevent the introduction of a spurious element: before this commit we'd pass the caller a nkArgList[nkHiddenStdConv[nkBracket]] node instead of just an empty nkArgList. Fixes #8706 | ||||
* | Allow `hint` and `warning` to specify its loc info (#8771) | LemonBoy | 2018-08-28 | 1 | -0/+24 |
| | | | Let's bring those to feature-parity with `error`. | ||||
* | fixes 8754 (#8755) | cooldome | 2018-08-24 | 1 | -5/+14 |
| | | | | | | * fixes 8754 * improve test | ||||
* | put the new for loop macros under an experimental switch named 'forLoopMacros' | Andreas Rumpf | 2018-08-15 | 1 | -1/+1 |
| | |||||
* | fixes #5617, 'copyLineInfo' addition (#8523) | andri lim | 2018-08-05 | 1 | -0/+14 |
| | |||||
* | fixes #7827, bindSym enhancement (#8499) | andri lim | 2018-08-02 | 1 | -0/+42 |
| | | | | | | | | | | | | | | | | * bindSym power up, working prototype * update bindSym doc * add bindSym test * fix some typo * fix bindSym doc * get rid of specialops field from vm * add experimental: dynamicBindSym | ||||
* | Render bug: if expression with statement list expression as condition (#8375) | cooldome | 2018-07-21 | 1 | -0/+16 |
| | | | | * Fixes #8348 | ||||
* | Fixes #8343, Fixes #8344 (#8347) | cooldome | 2018-07-18 | 1 | -1/+16 |
| | |||||
* | make typesafeprintf test green | Andreas Rumpf | 2018-07-17 | 1 | -3/+4 |
| | |||||
* | Fixes #8287 (#8288) | cooldome | 2018-07-12 | 1 | -0/+20 |
| | |||||
* | system.nim: remove deprecated symbols | Andreas Rumpf | 2018-06-28 | 1 | -16/+0 |
| | |||||
* | Return an error symbol as macro output if needed (#8116) | LemonBoy | 2018-06-27 | 1 | -0/+8 |
| | | | | | | Return an error symbol if the macro output has no type and a typedesc is expected. Fixes #7454 | ||||
* | fix #5930 | Arne Döring | 2018-06-13 | 1 | -2/+2 |
| | |||||
* | make tests green again | Andreas Rumpf | 2018-06-11 | 1 | -3/+3 |
| | |||||
* | A motivating example for the new `bindSym` behavior. | Zahary Karadjov | 2018-05-07 | 1 | -0/+154 |
| | | | | | | | | The example is a proof-of-concept logging library, allowing you to define lexically-scoped environments where certain logging attributes are applied automatically to all logging statements. fixes tmacro1 (use of `bindSym` inside static blocks) | ||||
* | Better support for treating templates and macros as symbols. | Zahary Karadjov | 2018-05-07 | 1 | -0/+173 |
| | | | | | | | | | | | | | | | | | | | This allows you to pass a template or a macro to another macro which can then inspect the implementation of the former template/macro using `getImpl`. Since templates can be freely redefined, this allows you to treat their symbols as compile-time variables that have lexical scope. A motivating PoC example for a logging library taking advantage of this will be provided in the next commit. Implementation details: * The name of a template or a macro will be consider a symbol if the template/macro requires parameters * For parameterless templates/macros, you can use `bindSym`, which was extended to also work outside of compile-time procs. | ||||
* | eqIdent new returns false on non identifier types (#7629) | Arne Döring | 2018-04-17 | 1 | -0/+17 |
| | |||||
* | move eqIdent to vm.nim (#7585) | Arne Döring | 2018-04-15 | 1 | -0/+42 |
| | | | | | | * Strutils comment changes. * fix typo | ||||
* | implements first version of for-loop macros | Andreas Rumpf | 2018-04-15 | 1 | -0/+44 |
| | |||||
* | Get symbol kind (#7491) | Arne Döring | 2018-04-11 | 1 | -0/+2 |
| | |||||
* | Add CommentStmt to astGenRepr (#7313) | PMunch | 2018-03-16 | 1 | -4/+24 |
| | | | | | | * Added codeRepr and dumpCode to the macros module. This allows those writing macros to write examples, get the code to generate the AST for that example, and then modify that code to be dynamic with the macro function. | ||||
* | fixes #7093 | Andreas Rumpf | 2018-01-18 | 1 | -0/+19 |
| | |||||
* | modify getTypeImpl to reduce result to final implementation (#6891) | jcosborn | 2017-12-09 | 1 | -2/+12 |
| | | | | | * added test case for getTypeImpl * modify getTypeImpl to reduce result to final implementation | ||||
* | fix getTypeInst for tyGenericInst (#6868) | jcosborn | 2017-12-04 | 1 | -6/+26 |
| | |||||
* | make tests green again | Araq | 2017-11-23 | 1 | -12/+0 |
| | |||||
* | make tests green again | Andreas Rumpf | 2017-10-01 | 1 | -2/+2 |
| | |||||
* | the parser finally parses 'echo {1,2}' as it should | Andreas Rumpf | 2017-09-30 | 1 | -1/+1 |
| | |||||
* | Fix #6295 (#6296) | BigEpsilon | 2017-08-30 | 1 | -0/+13 |
| | |||||
* | Fixed NimTypeKind enum, added missing values. (#6157) | Yuriy Glukhov | 2017-07-30 | 1 | -0/+7 |
| | |||||
* | Added codeRepr and dumpCode to the macros module. (#5778) | PMunch | 2017-07-26 | 1 | -0/+25 |
| | |||||
* | Remove expr/stmt (#5857) | Arne Döring | 2017-07-25 | 32 | -68/+56 |
| | |||||
* | newLit emty seq fix (#6091) | Arne Döring | 2017-07-13 | 1 | -0/+9 |
| | | | | * the type of the empty seq is still the correct type * updated test | ||||
* | fixes anon procs created by macros | Andreas Rumpf | 2017-07-11 | 1 | -1/+32 |
| | |||||
* | improved comment satement support in macros (#5904) | Arne Döring | 2017-06-02 | 1 | -19/+19 |
| | |||||
* | more and improved newLit procs in macros module | Arne Döring | 2017-05-23 | 1 | -0/+140 |
| | |||||
* | Merge branch 'zahary' into araq2 | Andreas Rumpf | 2017-05-16 | 1 | -3/+2 |
|\ | |||||
| * | fix a regression in tlexerex | Zahary Karadjov | 2017-04-10 | 1 | -3/+2 |
| | |