Commit Graph

6083 Commits

Author SHA1 Message Date
Dominik Picheta
25c6304abb Hopefully fixes nimsuggest building against the compiler package. 2015-06-07 13:14:52 +02:00
apense
c126b8ad0f Fixed links in Error hierarchy
Manual contained invalid links
2015-06-07 13:14:52 +02:00
apense
e132032b0f Fixed code indentation in procs.txt
Now matches tut2.txt
2015-06-07 13:14:52 +02:00
Adam Strzelecki
83369f4bce 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-07 13:14:52 +02:00
Adam Strzelecki
07c40add8f Parser: Properly represent parsePar in grammar 2015-06-07 13:14:52 +02:00
Adam Strzelecki
4674b3eb80 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-07 13:14:52 +02:00
yglukhov
c55f5dfca2 Perform lambda lifting for compile-time stuff when targeting JS. Enable unittest test. 2015-06-07 13:14:10 +02:00
Araq
ccb9ae2d52 stdlib: don't use deprecated symbols 2015-06-04 13:18:42 +02:00
Perelandric
e0ecaa86ba Reverted all changes 2015-06-04 13:18:42 +02:00
Perelandric
b0469c11e3 Reverted TZipFileStream name change 2015-06-04 13:18:41 +02:00
Perelandric
2124952db3 Added line breaks to long 'deprecated' pragmas 2015-06-04 13:18:40 +02:00
pdw
cbd8da93f4 lib/wrappers/s-z - Dropped 'T' from types 2015-06-04 13:18:40 +02:00
pdw
b2bc5440aa lib/wrappers/c-r - Dropped 'T' from types 2015-06-04 13:18:39 +02:00
pdw
9e771ca707 lib/windows - Dropped 'T' from types 2015-06-04 13:18:38 +02:00
pdw
2ca90a20a1 lib/system/g-w - Dropped 'T' from types 2015-06-04 13:18:37 +02:00
pdw
ff5b446dfc lib/system/a-e - Dropped 'T' from types 2015-06-04 13:18:37 +02:00
pdw
d18e18060e lib/pure/p-t - Dropped 'T' from types 2015-06-04 13:18:36 +02:00
pdw
6914244f30 lib/pure/e-o - Dropped 'T' from types 2015-06-04 13:18:35 +02:00
pdw
192ba3bbc0 lib/pure/a-c - Dropped 'T' from types 2015-06-04 13:17:11 +02:00
pdw
1c426c613c lib/posix - Dropped 'T' from types 2015-06-04 13:17:11 +02:00
pdw
7616790515 lib/packages/docutils - Dropped 'T' from types 2015-06-04 13:17:10 +02:00
pdw
6e8e3fdd23 lib/js - Dropped 'T' from types 2015-06-04 13:17:09 +02:00
pdw
ea03fc6886 lib/impure - Dropped 'T' from types 2015-06-04 13:17:09 +02:00
pdw
6ca3504dfb lib/core - Dropped 'T' from types 2015-06-04 13:17:08 +02:00
pdw
9764ba933b Dropped 'T' from types 2015-06-04 13:15:07 +02:00
Dominik Picheta
88e849078f Merge pull request #2830 from yglukhov/logging-no-format
Removed formatting from logging.
2015-06-04 11:43:49 +01:00
Andreas Rumpf
51488ebd12 Merge pull request #2848 from ozra/bugfix-2523-number-literal-lexing
Bugfix #2523 number literal lexing
2015-06-04 11:40:00 +02:00
Andreas Rumpf
a1f8b1bcf9 Merge pull request #2850 from ozra/docfix-2523-number-literals
Fix doc for #2523, regarding numeric literals.
2015-06-04 11:38:43 +02:00
Andreas Rumpf
86f58a002d Merge pull request #2861 from apense/patch-5
Added slight explanation for count{down|up}
2015-06-04 11:37:45 +02:00
Andreas Rumpf
8264c3cbee Merge pull request #2849 from ozra/feature-2811-hump-snake-dash
Feature #2811 hump, snake and now dash
2015-06-04 11:37:26 +02:00
Andreas Rumpf
874637be32 Merge pull request #2863 from yglukhov/js-dotdot
Fixed codegen for DotDot  magic in JS
2015-06-04 11:35:48 +02:00
yglukhov
e9a57e9706 Fixed codegen for DotDot magic 2015-06-04 12:00:27 +03:00
Dominik Picheta
a385b6736c Fix incorrect 400 reply in asynchttpserver
Without the ``continue`` the user's callback will be called but the client would have already been replied to.
2015-06-03 18:48:55 +01: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
Araq
79c92603f5 FlowVar's ^ for refs is safe and convenient to use 2015-06-02 16:32:53 +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
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
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
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