Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | | |||||
* | | fixed macros.getTypeImpl for a symbol of type tyGenericBody (#5788) (#5812) | jcosborn | 2017-05-14 | 1 | -18/+47 |
|/ | | | | | * fixed macros.getTypeImpl for a symbol of type tyGenericBody * added test case and commented test code | ||||
* | overloading resolution for getAst; breaking change | Araq | 2017-03-18 | 1 | -4/+4 |
| | |||||
* | Fixes #5167 and related problems (#5475) | zah | 2017-03-12 | 2 | -2/+2 |
| | | | | | | | | | This commit returns to a bit less strict checking of the number of macro arguments, because some old immediate macros rely on a behavior where even the arity of the macro is not being checked. It may be better if such macros are just declared to use varargs[expr], but this remains for another day. | ||||
* | Fix sigsegv in getTypeImpl for unnamed tuple (#5440) | Fabian Keller | 2017-03-02 | 1 | -0/+4 |
| | | | avoid sigsegv in getTypeImpl for unnamed tuple; fixes #4862 | ||||
* | template+emit supports volatileRead and volatileWrite ops | Andreas Rumpf | 2017-01-23 | 1 | -3/+21 |
| | |||||
* | fixes #5131 | Araq | 2016-12-20 | 1 | -0/+48 |
| | |||||
* | make tvarargsuntyped test deterministic, independent of compiler's hashing order | Araq | 2016-12-13 | 1 | -1/+2 |
| | |||||
* | Added a dump macro for debugging | Andrea Ferretti | 2016-09-22 | 1 | -0/+13 |
| | |||||
* | added missing test files | Andreas Rumpf | 2016-08-26 | 1 | -0/+67 |
| | |||||
* | stdlib and compiler don't use .immediate anymore | Andreas Rumpf | 2016-07-29 | 1 | -1/+1 |
| | |||||
* | fixes a varargs of untyped regression | Andreas Rumpf | 2016-07-24 | 1 | -0/+79 |
| | |||||
* | added test case for #537 | Andreas Rumpf | 2016-07-06 | 1 | -0/+42 |
| | |||||
* | getTypeInst and getTypeImpl mostly working now and added test | James Osborn | 2016-05-04 | 1 | -0/+122 |
| | |||||
* | fixes #1152 | Andreas Rumpf | 2016-04-03 | 1 | -0/+48 |
| | |||||
* | use 'using' instead of 'sig' keyword; cleans up new features a bit | Andreas Rumpf | 2016-02-29 | 1 | -1/+1 |
| | |||||
* | fixes #3541 | Araq | 2015-11-18 | 2 | -18/+18 |
| |