Commit Graph

7456 Commits

Author SHA1 Message Date
Jacek Sieka
a9ef5bf459 compiler_ropes: TRope -> RopeObj, PRope* -> Rope* 2015-04-01 22:32:15 +08:00
Jacek Sieka
bcdb5b0836 compiler_ropes: toRope -> rope 2015-04-01 22:32:15 +08:00
Jacek Sieka
aafbe5c866 ropes: make lib & compiler frmt more similar, fix out-of-bounds accesses in lib ropes 2015-04-01 22:32:15 +08:00
Jacek Sieka
91f42a2943 compiler_ropes: ropef -> %, appf -> addf 2015-04-01 22:32:15 +08:00
Jacek Sieka
171996465f compiler_ropes: ropeEqualsFile -> equalsFile, no more max rope component length
read file data in bigger blocks, avoiding lots of file api calls

also removed crc step - seems easier to simply compare the bytes rather
than calculating two crc's
2015-04-01 22:32:15 +08:00
Jacek Sieka
80ee28daf7 compiler_ropes: add & and add
Invokations still need to be updated, but that's a lot of changes, so
save for later
2015-04-01 22:32:15 +08:00
Jacek Sieka
c40249cd43 compiler_ropes: ropeToStr -> $ 2015-04-01 22:32:15 +08:00
Jacek Sieka
b4e4ea8d1b compiler_ropes: don't expose newRope 2015-04-01 22:30:39 +08:00
Jacek Sieka
97d2df9bac compiler_ropes: ropeLen -> len 2015-04-01 22:30:39 +08:00
Araq
57fa8c6d3f bugfixes for C++ codegen 2015-04-01 15:34:15 +02:00
yglukhov
9495a3caba Correct dom objects inheritance. 2015-04-01 13:50:59 +03:00
Simon Hafner
a339cb5ed5 Merge branch 'devel' into jpoirier-realtimeGCTest 2015-04-01 06:33:24 +05:00
Jakob Oesterling
ff75cf5c2c fixes https://github.com/Araq/Nim/issues/2116 2015-04-01 00:12:55 +02:00
Dominik Picheta
cb75830c76 Merge pull request #2434 from yglukhov/epoch-time-js
Implemented epochTime function for JS target.
2015-03-31 00:49:30 +01:00
Flaviu Tamas
eb117e239f Adjust readme formatting
- Add table of contents
- Move image to bottom
2015-03-30 19:42:48 -04:00
Dominik Picheta
b38eb2e2a8 Implements #2154.
When unpacking tuples in var/let declarations a part of the tuple can now
be discarded using a single underscore.
2015-03-31 00:39:23 +01:00
fowlmouth
7b80a0568f Merge branch 'devel' of github.com:Araq/Nim into patch2 2015-03-30 18:24:46 -05:00
def
4a471d8231 Don't use deprecated intsets.empty 2015-03-31 00:33:53 +02:00
def
63f9385327 Rename mget to []
- In sets, tables, strtabs, critbits, xmltree
- This uses the new var parameter overloading
- mget variants still exist, but are deprecated in favor of `[]`
- Includes tests and fixed tests and usages of mget
- The non-var `[]` now throws an exception instead of returning binary 0
  or an empty string
2015-03-31 00:32:39 +02:00
yglukhov
9e2d6d072c Implemented epochTime function for JS target. 2015-03-31 00:23:43 +03:00
Dominik Picheta
3751019823 Fix infinite recursion when await is in except body. 2015-03-30 00:42:21 +01:00
Araq
edc4940c26 doc updates; fixes 'inc' for 'char' 2015-03-29 13:16:22 +02:00
def
d4a1641054 Fix installer path for nim.nim.cfg 2015-03-28 15:08:29 +01:00
def
07351d5f37 Initialize c compiler variables later ...
... so that symbols such as "cpp" are defined

Fixes #1460
2015-03-28 15:07:55 +01:00
fowlmouth
f8917e8ad3 add ntys up to ntyNot 2015-03-28 03:19:48 -05:00
Araq
165619552a fixes #2355 2015-03-28 00:47:03 +01:00
Andreas Rumpf
bd56d36326 Merge pull request #2419 from def-/dotdot
Dotdot
2015-03-28 00:44:51 +01:00
def
64903e7050 Use ^ instead of - in slices 2015-03-28 00:38:15 +01:00
Araq
2b80d75aa2 fixes #2420; negative indexing for slicing is obsolete (breaking change!) 2015-03-28 00:15:04 +01:00
Araq
46fb0e0bac fixes another regression 2015-03-27 11:57:03 +01:00
Andreas Rumpf
280d1d56e6 Merge pull request #2417 from fowlmouth/patch-2
Make the symbols returned from getType() usable for that type
2015-03-27 09:33:04 +01:00
fowlmouth
8274639eaa Merge branch 'patch-2' of github.com:fowlmouth/Nimrod into patch
Conflicts:
	compiler/vmdeps.nim
2015-03-27 02:16:24 -05:00
fowlmouth
cfbb7390e2 added test for symbol type 2015-03-27 02:07:09 -05:00
Billingsly Wetherfordshire
1ba785dd74 set type for symbols from getType() 2015-03-27 01:43:28 -05:00
Araq
e80840c40a preparations for dealing with the 'echo $foo' gotcha 2015-03-27 02:14:27 +01:00
Araq
7720c0aafd fixes a regression related to the new typeOf parsing 2015-03-27 02:13:51 +01:00
Araq
7023fdddff todo update 2015-03-27 01:30:07 +01:00
Araq
ed0d9e271d disallow negative indexing 2015-03-27 01:30:06 +01:00
Andreas Rumpf
96d15e9258 Merge pull request #2410 from def-/refobj
Use ref objects with inheritance in Tut2 (fixes #1817)
2015-03-26 19:46:42 +01:00
def
f8472402d5 Also use ref objects with inheritance in manual 2015-03-26 18:14:18 +01:00
def
91ed170523 Rework explanation a bit (thanks flaviu) 2015-03-26 18:08:58 +01:00
def
91708bb21d Add explanation why we use ref objects 2015-03-26 15:59:26 +01:00
Andreas Rumpf
95ccb3c035 Merge pull request #2413 from def-/fix-gcusebitvectors
Fix proc call in gc_ms
2015-03-26 02:19:33 +01:00
Araq
5d63ecb3a4 implemented a[^1] notation 2015-03-26 02:12:38 +01:00
def
450c2c5287 Fix proc call in gc_ms
This fixes compilation with --gc:markandsweep -d:gcUseBitvectors
2015-03-26 01:12:45 +01:00
Simon Hafner
06b7892ed0 Merge branch 'realtimeGCTest' of https://github.com/jpoirier/Nim into jpoirier-realtimeGCTest 2015-03-26 05:09:40 +05:00
Simon Hafner
36b6bfaf78 cannot gen symbol -> must be compile time 2015-03-26 05:04:12 +05:00
Simon Hafner
6dfb13b2b8 doc comments for merge 2015-03-26 03:40:39 +05:00
def
748a7b866f Use ref objects with inheritance in Tut2 (fixes #1817) 2015-03-25 23:39:17 +01:00
Simon Hafner
73655e3dd6 merge for CountTable, see #1680 2015-03-26 03:38:30 +05:00