Araq
83842ff4ed
Nimrod -> Nim rename
2015-07-08 11:49:33 +02:00
Araq
b9ccd06013
fixes bootstrapping problem
2015-07-04 18:24:57 +02: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
Araq
6b3abdba0f
made macros.$ a bit smarter; but really this one needs to die
2015-07-03 01:57:01 +02:00
Araq
28de800d61
Merge branch 'more_concurrency' into devel
...
Conflicts:
doc/tut1.txt
lib/core/locks.nim
lib/pure/collections/tables.nim
lib/pure/selectors.nim
2015-06-30 12:50:24 +02:00
Stefan Talpalaru
b487d4e425
conditional TGenericSeq extension
2015-06-16 15:15:17 +02:00
Stefan Talpalaru
bdac85f2cf
Merge branch 'devel' into gogc
2015-06-15 08:44:02 +02:00
Andreas Rumpf
bbb1bdb4a9
Merge pull request #2643 from grncdr/TAny-and-inheritance
...
Resolve base type fields in `[](TAny, string)`
2015-06-07 10:56:29 +02:00
pdw
6ca3504dfb
lib/core - Dropped 'T' from types
2015-06-04 13:17:08 +02:00
Stefan Talpalaru
50e96ad939
the Go GC - initial implementation
2015-05-31 19:07:44 +02:00
Araq
543ec37975
get rid of deprecated effects
2015-05-28 12:51:18 +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
75ccdebd1e
get rid of deprecated effects
2015-05-13 12:19:08 +02:00
Stephen Sugden
7fb5932b9b
Resolve base type fields in [](TAny, string)
2015-05-03 00:16:22 +02:00
Araq
43eae0c113
macros: added bool literal support
2015-04-20 20:40:10 +02:00
Araq
2b4e233510
Merge branch 'devel' of https://github.com/Araq/Nim into devel
2015-04-20 11:44:54 +02:00
Araq
dc3a0bc009
added macros.newTree proc (why didn't we do this earlier?)
2015-04-20 11:34:18 +02:00
fowlmouth
f8917e8ad3
add ntys up to ntyNot
2015-03-28 03:19:48 -05:00
Araq
a541be8935
prepare for upcoming parsing change of unary operators
2015-03-22 09:31:15 +01:00
def
fd4e629905
Rename PNimrodNode to NimNode
2015-03-17 17:50:32 +01:00
Max Zerzouri
9c126282b2
interpret tuple as a class and tuple[] as the empty tuple
...
When the indentation syntax is allowed it is always interpreted as a
tuple:
type
Unit = tuple
2015-03-06 12:20:15 +13:00
Chris Heller
0553758ebd
Clone the implementation of cmpIgnoreStyle into macros.nim from typeinfo.nim so that we get rid of any imports in the core modules
2015-03-03 09:29:38 -08:00
Chris Heller
b54dfbce16
Remove use of .format() from macros.nim to avoid importing into core. There is still a remaining import of cmpIgnoreStyle from strutils that needs to be removed as well
2015-03-03 09:22:54 -08:00
Chris Heller
df7e388e0c
Make macros.nim expectKind error message with a single TNimrodNodeKind consistent with error message shown with a set of TNimrodNodeKind by displaying the actual node kind (as well as the expected)
2015-03-02 17:02:43 -08:00
Araq
24ae0c387f
some love for the testsuite; fixed regressions
2015-03-01 21:41:21 +01:00
Araq
3bfcfeb0cf
don't use stdout for nimsuggest server mode
2015-02-27 16:44:55 +01:00
Araq
975f33b01d
disable deprecated warnings for macros module
2015-02-25 21:14:21 +01:00
Araq
752052e903
implements a type API for macros
2015-02-24 00:13:28 +01:00
Araq
1e6aef62ba
macros.PNimrodNode is now NimNode
2015-02-24 00:13:27 +01:00
Federico Ceratto
657dca5c3b
Fix typos
2015-02-15 16:20:32 +00:00
Federico Ceratto
c95f6f117a
Fix typos
2015-02-15 16:06:06 +00:00
Araq
10335fd726
fixed minor bugs; cleaned up tests
2015-02-12 14:56:56 +01:00
dumndummer
9a1be7a9f3
Update macros.nim
...
minor doc comment spelling correction
2015-02-02 17:57:31 +00:00
Mason McGill
a6ce70bd8d
Added a few AST-construction shortcuts.
2015-01-27 11:48:14 -08:00
Audun Wilhelmsen
c461f5a8c6
Merge branch 'devel' of https://github.com/Araq/Nim into devel
2015-01-02 22:12:11 +01:00
Audun Wilhelmsen
e5bfb7d550
Added support for big 'u64 literals
...
Removed duplicate "SomeUInt' typedef from unsigned.nim
2015-01-02 22:10:49 +01:00
Dominik Picheta
acc80aaedc
macros.$ can now turn a nnkSym into a string.
2014-12-28 15:23:05 +00:00
Araq
bebac34f87
fixes #1352
2014-12-14 11:49:32 +01:00
Araq
911001991f
more index terms
2014-12-11 20:50:08 +01:00
Araq
02f085b479
minor documentation improvements
2014-12-08 08:42:59 +01:00
Araq
08fcc87986
deprecated old locking effects
2014-12-08 08:42:18 +01:00
Araq
e27ab36731
implements 'defer'
2014-12-04 10:12:32 +01:00
Andreas Rumpf
6fb2d44b36
Merge pull request #1643 from def-/fix-locks-case
...
Fix compile because of case sensitivity
2014-11-12 23:25:22 +01:00
Araq
b2f577df23
fixes #1473
2014-11-12 02:36:59 +01:00
def
78b3f739b1
Remove runtime deadlock prevention as deadlock detection at compile-time is available
...
Conflicts:
lib/core/locks.nim
2014-11-11 00:50:29 +01:00
def
ea57f340f2
Fix compile because of case sensitivity
2014-11-08 15:54:48 +01:00
Araq
adad2d5f4a
Merge branch 'devel' into bigbreak
...
Conflicts:
lib/impure/db_postgres.nim
lib/pure/json.nim
lib/pure/math.nim
lib/system/atomics.nim
2014-11-03 11:42:36 +01:00
Araq
7a48942719
nicer error messages (untested)
2014-10-26 19:54:43 +01:00
Grzegorz Adam Hankiewicz
aa1fb9a07e
Adds stringification support for nnkPostfix nodes.
2014-10-11 00:53:26 +02:00