Adam Strzelecki
e80465dacf
tests: Trim .nim files trailing whitespace
...
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
Araq
695e2e970e
implemented macros.getImpl
2015-08-21 02:34:34 +02:00
Zahary Karadjov
02f97489b7
fix #1858 again; restores the support for static macro params
2015-08-02 23:58:22 +03:00
Adam Strzelecki
1a0417fbe0
macros: Introduce sameType(a, b) for node types
...
Previously introduced node comparison `==` was working somehow wrong on nodes
returned from getType(a), comparing just ids of the symbols.
Recently introduced `==` change 47dce26886
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.
2015-07-03 11:11:10 +02:00
Araq
60ac5e3e76
fixes #3046
2015-07-03 10:55:50 +02:00
patrick dw
69e15ac32f
renamed writeln to writeLine in tests
2015-06-19 01:34:34 -05:00
Adam Strzelecki
b49c75c82a
macros: Add test for node comparsion
2015-06-10 18:07:21 +02:00
Adam Strzelecki
1d47617d1b
Macros: Introduce getType(t: typedesc): NimNode
...
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.
2015-05-17 15:28:41 +02:00
Araq
4d20aafb5e
fixes #2372
2015-04-25 23:16:57 +02:00
Araq
e55f5d1fd4
fixes #2505 , fixes #1853 , fixes #2522
2015-04-20 21:25:49 +02:00
Araq
9abfc60db4
parse 'of' branches for macros properly
2015-04-19 14:25:16 +02:00
Araq
10c1d7f519
minor lexer cleanups; fixes #2504
2015-04-10 14:03:48 +02:00
fowlmouth
cfbb7390e2
added test for symbol type
2015-03-27 02:07:09 -05:00
def
fd4e629905
Rename PNimrodNode to NimNode
2015-03-17 17:50:32 +01:00
Araq
335c19c869
tester reports ignored tests and supports 'nimout'; fixes #2211
2015-02-25 12:59:32 +01:00
Simon Hafner
43ddb4806b
added tests from issue #497
2015-02-01 04:37:34 -06:00
Araq
5f6131cbdc
fixes #1944
2015-01-18 14:44:16 +01:00
Araq
9280473eb1
fixes #1120
2014-12-25 17:22:41 +01:00
Araq
76c3b314dc
implemented 'koch pdf'
2014-12-19 13:44:56 +01:00
Araq
bc5879b9b7
fixes error propagation for macros.parseExpr
2014-11-13 09:12:27 +01:00
Araq
b2f577df23
fixes #1473
2014-11-12 02:36:59 +01:00
Araq
c6034277fc
further adaptations
2014-08-29 09:12:12 +02:00
Araq
d80d8aa74d
fixes #1323
2014-07-08 20:12:07 +02:00
Araq
39ce17a73e
fixes #933
2014-07-08 16:37:45 +02:00
Araq
f16449ec22
fixes #1103 ; fixes #1297
2014-07-08 02:02:58 +02:00
Araq
0339b9d386
fixes #1319
2014-06-30 22:24:08 +02:00
flaviut
2fcc911a94
Enable disabled test
2014-05-26 13:50:08 -04:00
flaviut
4d4ac62d40
Add test for #1149
2014-05-26 13:49:23 -04:00
Araq
fe690a2c91
added test case for bug #1140
2014-05-06 00:05:30 +02:00
Dominik Picheta
57cc8237f7
Fixes #1093 .
2014-04-20 21:55:45 +01:00
Araq
12e3c11eb6
fixes #911
2014-03-28 08:40:15 +01:00
Dominik Picheta
23d581d377
Added test for issue #911 .
2014-03-27 21:52:28 +00:00
Araq
dc956c485a
fixes tmemit regression
2014-03-26 22:56:56 +01:00
Araq
0c31686fec
new VM is getting stable
2014-02-24 01:30:40 +01:00
Araq
3ec2973875
fixes #926
2014-02-17 08:26:44 +01:00
Araq
d912d18379
tyTypeDesc and tyRange always have 1 child; this might be tyNone but it is required for skipTypes
2014-02-05 23:43:13 +01:00
Araq
99352c1e4c
macro tests almost green
2014-02-03 17:35:03 +01:00
Araq
a5098f1fda
fixed cases
2014-02-02 00:03:57 +01:00
Araq
4a0aadef4d
parser support anon iterators
2014-01-20 20:07:44 +01:00
Araq
383fbca27e
better tester
2014-01-17 08:47:51 +01:00
Araq
20b5f31c03
new tester; all tests categorized
2014-01-13 02:10:03 +01:00