Commit Graph

18917 Commits

Author SHA1 Message Date
Ryan Gonzalez
8beed96106 Colors! 2015-06-02 18:47:43 -05:00
apense
860da53db5 Added slight explanation for count{down|up}
The inclusivity of a..b (that it is from a <= n <= b) wasn't clear.
2015-06-02 17:11:03 -04:00
Oscar Campbell
44b0bf59d9 Change const def to cleaner code per suggestion. 2015-06-02 22:22:27 +02:00
Adam Strzelecki
b0db8126a5 Parser: Inline expr pragmas with parenthesis
Previously pragmas could be attached only to whole statements, this change
allows attaching pragmas to inline statements, eg.:

  template rewriteAdd{a + b}(a: expr, b: expr): expr =
    ({.noRewrite.}: a + b) + 1

Code above will cause a + b to be rewritten once, because rewriteAdd attaches
{.noRewrite.} to resulting a + b expr.
2015-06-02 21:58:14 +02:00
Adam Strzelecki
2f5ed17cfe Parser: Properly represent parsePar in grammar 2015-06-02 21:53:46 +02:00
Adam Strzelecki
13b57dbc2f Introduce {.noRewrite.} expr pragma disabling TR
Term rewriting macros/templates are currently greedy and they will rewrite as
long as there is a match. So there was no way to ensure some rewrite happens
only once, eg. when rewriting term to same term plus extra content.

With new macro we can actually prevent further rewriting on marked expr or
stmts, eg. with given example echo(...) will be rewritten just once:

  template pwnEcho{echo(x)}(x: expr) =
    {.noRewrite.}: echo("pwned!")

  echo "ab"
2015-06-02 21:38:53 +02:00
Araq
79c92603f5 FlowVar's ^ for refs is safe and convenient to use 2015-06-02 16:32:53 +02:00
Araq
3312d49a48 proper waiting for the pinned thread 2015-06-02 16:21:55 +02:00
Dominik Picheta
a88120ab50 Merge pull request #2855 from x2f/devel
In logging.nim, expose bufSize parameter for file-based loggers
2015-06-02 13:29:39 +01:00
x2f
51d284ce84 Documented bufSize param in logging.nim
Documented bufSize param in logging.nim to complete the previous change
that added a bufSize parameter to file based logger constructors.
2015-06-01 21:52:26 -04:00
Oscar Campbell
dd30bab480 Restructure branching slighty. Fix error message. 2015-06-01 23:49:04 +02:00
fowlmouth
80a13a408e added a test 2015-06-01 11:01:50 -05:00
Billingsly Wetherfordshire
87c8d586b5 string only matches for openarray not varargs 2015-06-01 07:37:36 -05:00
Billingsly Wetherfordshire
f3b8a3cbbc made string compatible with openarray[char] 2015-06-01 06:04:22 -05:00
x2f
3f78f75483 Expose bufSize parameter for file-based loggers
newFileLogger and newRollingFileLogger have a new bufSize parameter that
is used in open(). The default value -1 has the same behavior as before.
Use 0 for unbuffered output to log file.
2015-05-31 21:06:23 -04:00
Stefan Talpalaru
50e96ad939 the Go GC - initial implementation 2015-05-31 19:07:44 +02:00
Oscar Campbell
9fcd5252c7 Fix doc for #2523, regarding numeric literals. 2015-05-31 03:59:31 +02:00
Oscar Campbell
4a1e45e3f8 Remove forgotten debug echo statement. 2015-05-31 03:11:44 +02:00
Oscar Campbell
6a43b0e817 Clean up to compiler style. Refine error-msg for illegal octal 'O' 2015-05-31 02:55:06 +02:00
Oscar Campbell
d35887e492 Util funcs used by lib/hashes.nim and compiler/lexer.nim 2015-05-31 01:32:50 +02:00
Oscar Campbell
1b4db5a34c Implement #2811 - Unicode en-dash (U+2013) as hump/snake alt. 2015-05-31 01:31:06 +02:00
Oscar Campbell
49b953533a Fix #2523 - first commit. Needs some cleanup. 2015-05-31 00:56:27 +02:00
boopcat
af07db2829 Export newSocket(fd) from net.nim and standardize args in net/asyncnet
Exporting newSocket(fd) mimics what asyncnet does and lets you pass in your
 own socket FD.
newSocket*(fd) and newAsyncSocket*(fd) now both take "buffered" instead of
 "isBuff" and defaults to true to match the other constructors on both.
2015-05-30 11:01:15 +00:00
yglukhov
c5f7d553e9 Perform lambda lifting for compile-time stuff when targeting JS. Enable unittest test. 2015-05-29 10:48:14 +03:00
Dominik Picheta
6820b2fea9 Merge pull request #2831 from stedi67/devel
fix for https://github.com/nim-lang/Aporia/issues/69
2015-05-28 14:40:43 +01:00
Stephan Diehl
4fcf5adfe2 fix for https://github.com/nim-lang/Aporia/issues/69 2015-05-28 15:25:09 +02:00
Andreas Rumpf
852987c880 Merge pull request #2829 from yglukhov/js-asm-renderer
Fixed renderer for asm node in JS
2015-05-28 14:26:55 +02:00
yglukhov
e65ccfb8f5 Removed formatting from logging. 2015-05-28 14:48:53 +03:00
Araq
2d2eca18b8 bootstrap.sh: cannot keep exec bit on windows 2015-05-28 12:59:40 +02:00
Araq
8d508162e8 added missing test 2015-05-28 12:51:18 +02:00
Araq
543ec37975 get rid of deprecated effects 2015-05-28 12:51:18 +02:00
Araq
3c13508b25 terminal: doc improvments 2015-05-28 12:51:17 +02:00
Araq
2b0115eb5f prepare for unidecode Nimble package 2015-05-28 12:51:16 +02:00
Araq
e51e2564a2 development version is 0.11.3 2015-05-28 12:51:16 +02:00
Araq
21ea8e6913 some progress on making async multithreaded 2015-05-28 12:49:08 +02:00
Araq
c5a479d536 minor manual update 2015-05-28 12:44:58 +02:00
Araq
5824be8e8c minor tut1 update 2015-05-28 12:44:31 +02:00
Araq
94f54700c4 first implementation of pinnedSpawn 2015-05-28 12:42:04 +02:00
yglukhov
eec76cfc6b Fixed renderer for asm node in JS 2015-05-28 10:23:09 +03:00
Andreas Rumpf
d270c8ebe8 Merge pull request #2822 from yglukhov/js-taddr-test
Enabled taddr and testobjs tests
2015-05-27 12:52:37 +02:00
yglukhov
b4843bc7c1 Enabled taddr and testobjs tests 2015-05-27 11:36:45 +03:00
Andreas Rumpf
860eca32a5 Merge pull request #2817 from flaviut/fix-unittest
Fix unittest problems
2015-05-27 01:26:55 +02:00
Flaviu Tamas
075a5e8440 Disable static building of PCRE 2015-05-26 19:20:00 -04:00
Flaviu Tamas
42db40813c Clarify nre licencing 2015-05-26 19:18:34 -04:00
Flaviu Tamas
0527e1f9fe Rearrange nre files 2015-05-26 19:14:04 -04:00
Flaviu Tamas
0d4aeec9be Merge remote 'nre' into add-nre
* nre-proj/master: (132 commits)
  Change to options module
  Reweave readme
  Better handle errors
  Update documentation
  Change flags to inline
  Improve performance
  Add tests for empty or non-empty match
  Fix skipping an empty match at the end
  Add longer flags
  Fix getinfo overflows
  Use docweave
  Convert readme to RST
  Fix result shadowing warning
  Throw an exception when replacing with a nil value
  Fix potential buffer overflow
  Fix zero-length matches for multibyte characters
  Make splitting an empty string give 1 empty result
  Change endpos to inclusive
  Change endpos default from -1 to int.high
  Change capture upper bounds to inclusive
  ...
2015-05-26 19:05:43 -04:00
Flaviu Tamas
3daef85d6e Fix #964, fix #1384
Doesn't actually fix those bugs, but they can no longer be reproduced. Test
cases have been added.
2015-05-26 18:41:28 -04:00
Flaviu Tamas
c9616897f0 Don't inspect typedescs 2015-05-26 18:40:43 -04:00
Flaviu Tamas
9576bc087d Change to options module 2015-05-26 18:18:11 -04:00
Andreas Rumpf
4fc9dabd58 Merge pull request #2816 from flaviut/optionals-to-options
Rename optionals module to options
2015-05-26 22:50:35 +02:00