summary refs log tree commit diff stats
path: root/tests/macros
Commit message (Collapse)AuthorAgeFilesLines
* modify getTypeImpl to reduce result to final implementation (#6891)jcosborn2017-12-091-2/+12
| | | | | * added test case for getTypeImpl * modify getTypeImpl to reduce result to final implementation
* fix getTypeInst for tyGenericInst (#6868)jcosborn2017-12-041-6/+26
|
* make tests green againAraq2017-11-231-12/+0
|
* make tests green againAndreas Rumpf2017-10-011-2/+2
|
* the parser finally parses 'echo {1,2}' as it shouldAndreas Rumpf2017-09-301-1/+1
|
* Fix #6295 (#6296)BigEpsilon2017-08-301-0/+13
|
* Fixed NimTypeKind enum, added missing values. (#6157)Yuriy Glukhov2017-07-301-0/+7
|
* Added codeRepr and dumpCode to the macros module. (#5778)PMunch2017-07-261-0/+25
|
* Remove expr/stmt (#5857)Arne Döring2017-07-2532-68/+56
|
* newLit emty seq fix (#6091)Arne Döring2017-07-131-0/+9
| | | | * the type of the empty seq is still the correct type * updated test
* fixes anon procs created by macrosAndreas Rumpf2017-07-111-1/+32
|
* improved comment satement support in macros (#5904)Arne Döring2017-06-021-19/+19
|
* more and improved newLit procs in macros moduleArne Döring2017-05-231-0/+140
|
* Merge branch 'zahary' into araq2Andreas Rumpf2017-05-161-3/+2
|\
| * fix a regression in tlexerexZahary Karadjov2017-04-101-3/+2
| |
* | fixed macros.getTypeImpl for a symbol of type tyGenericBody (#5788) (#5812)jcosborn2017-05-141-18/+47
|/ | | | | * fixed macros.getTypeImpl for a symbol of type tyGenericBody * added test case and commented test code
* overloading resolution for getAst; breaking changeAraq2017-03-181-4/+4
|
* Fixes #5167 and related problems (#5475)zah2017-03-122-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 Keller2017-03-021-0/+4
| | | avoid sigsegv in getTypeImpl for unnamed tuple; fixes #4862
* template+emit supports volatileRead and volatileWrite opsAndreas Rumpf2017-01-231-3/+21
|
* fixes #5131Araq2016-12-201-0/+48
|
* make tvarargsuntyped test deterministic, independent of compiler's hashing orderAraq2016-12-131-1/+2
|
* Added a dump macro for debuggingAndrea Ferretti2016-09-221-0/+13
|
* added missing test filesAndreas Rumpf2016-08-261-0/+67
|
* stdlib and compiler don't use .immediate anymoreAndreas Rumpf2016-07-291-1/+1
|
* fixes a varargs of untyped regressionAndreas Rumpf2016-07-241-0/+79
|
* added test case for #537Andreas Rumpf2016-07-061-0/+42
|
* getTypeInst and getTypeImpl mostly working now and added testJames Osborn2016-05-041-0/+122
|
* fixes #1152Andreas Rumpf2016-04-031-0/+48
|
* use 'using' instead of 'sig' keyword; cleans up new features a bitAndreas Rumpf2016-02-291-1/+1
|
* fixes #3541Araq2015-11-182-18/+18
|
* Rename rawsockets module to nativesocketsAdam Strzelecki2015-10-031-2/+2
| | | | | | | | | | This change was done to avoid confusion with TCP/IP raw sockets. Native sockets module represents handling native system low level socket API in general and is not just limited anyhow to TCP/IP raw sockets. A stub lib/deprecated/pure/rawsockets.nim module has been added as compatibility layer for old code using rawsockets, so this change will not break existing code.
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-048-20/+20
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* implemented macros.getImplAraq2015-08-211-0/+20
|
* fix #1858 again; restores the support for static macro paramsZahary Karadjov2015-08-021-0/+74
|
* macros: Introduce sameType(a, b) for node typesAdam Strzelecki2015-07-031-0/+41
| | | | | | | | | | | | | Previously introduced node comparison `==` was working somehow wrong on nodes returned from getType(a), comparing just ids of the symbols. Recently introduced `==` change 47dce2688633fad840a2f5e4073c531f1cd640ca started comparing symbol nodes pointer-wise, thus strictly. Since getType(a) always creates new symbol pointing to the type, comparing two such nodes using `==` always returns false, even they point to the same type. That is why we need a new sameType macro to be able to tell if these nodes point to the same type.
* fixes #3046Araq2015-07-031-1/+17
|
* renamed writeln to writeLine in testspatrick dw2015-06-191-1/+1
|
* macros: Add test for node comparsionAdam Strzelecki2015-06-101-0/+39
|
* Macros: Introduce getType(t: typedesc): NimNodeAdam Strzelecki2015-05-171-0/+20
| | | | | | | | | | | | | Since typedesc are exception in macros and they are not implicitly converted to NimNode on macro call, we need some means to perform such conversion on demand. Fortunately it is as simple as declaring new magic "NGetType" proc with typedesc parameter. NOTE: Keeping actual macro exceptional behavior for typedesc is important, since it allows passing typedesc macro parameter to other procs or macros expecting type parameter. If typedesc parameter was implicitly converted, then we would lost this ability.
* fixes #2372Araq2015-04-251-0/+12
|
* fixes #2505, fixes #1853, fixes #2522Araq2015-04-201-2/+2
|
* parse 'of' branches for macros properlyAraq2015-04-191-0/+16
|
* minor lexer cleanups; fixes #2504Araq2015-04-101-0/+1
|
* added test for symbol typefowlmouth2015-03-271-0/+49
|
* Rename PNimrodNode to NimNodedef2015-03-1713-42/+42
|
* tester reports ignored tests and supports 'nimout'; fixes #2211Araq2015-02-254-8/+28
|
* added tests from issue #497Simon Hafner2015-02-012-0/+22
|
* fixes #1944Araq2015-01-181-0/+10
|
* fixes #1120Araq2014-12-251-2/+2
|