yglukhov
f14ca63417
Singing and dancing with skipTypes.
2015-06-12 00:06:01 +03:00
yglukhov
6436d1920c
Fixed copying of aggregates in JS.
2015-06-11 23:32:08 +03:00
yglukhov
f47081b300
Fixed addr of bracket expression. Fixes #2148 .
2015-06-11 18:32:22 +03:00
Oscar Campbell
b3eb8ab81c
Merge branch 'devel' into bugfix-2858-testament-sources-system-wide
2015-06-10 19:08:45 +02:00
Adam Strzelecki
6ecce2941e
macros: exprStructuralEquivalent for EqNimrodNode
...
Previously NimNode comparison in macros way returning false for anything else
than nil literal.
2015-06-10 18:07:21 +02:00
Andreas Rumpf
258bfa886a
Merge pull request #2852 from kirbyfan64/devel
...
Colors!
2015-06-10 11:08:22 +02:00
Andreas Rumpf
cb439d70bc
Merge pull request #2892 from apense/patch-6
...
Fixes #2886 (moves compiler function into the compiler)
2015-06-10 10:55:31 +02:00
rku
87b6220897
Removed magics: mAbsI64
2015-06-10 10:25:36 +03:00
rku
3984fecae6
Removed magics: mBitnotI64
2015-06-10 10:25:36 +03:00
rku
47114342c4
Removed magics: mEqI64 mLtI64 mLeI64
2015-06-10 10:25:36 +03:00
rku
658dcd2a58
Removed magics: mShrI64, mShlI64, mBitandI64, mBitorI64, mBitxorI64
...
Author: rku <rokups@zoho.com >
2015-06-10 10:25:36 +03:00
rku
372a5d3cbb
Removed magics: mAddI64, mSubI64, mMulI64, mDivI64, mModI64
...
Author: rku <rokups@zoho.com >
2015-06-10 10:25:35 +03:00
Adam Strzelecki
4e14c0ad9f
securehash: SHA1 -> Sha1 according to style guide
2015-06-09 22:57:44 +02:00
apense
867b38496b
Moved negative indexing operator here
...
Only used here (not in standard library)
2015-06-09 16:24:13 -04:00
Ryan Gonzalez
d4d5f95808
Remove unnecessary import
2015-06-09 15:21:33 -05:00
Adam Strzelecki
54c863d6ae
securehash: sha_digest_size is not following style
...
https://github.com/Araq/Nim/wiki/Style-Guide-for-Nim-Code
2015-06-09 22:20:06 +02:00
Adam Strzelecki
eccc2f87e9
securehash: remove unused emptySecureHash
2015-06-09 22:20:05 +02:00
Adam Strzelecki
3d266433a7
securehash: Keep module name consistent
...
1. All other modules don't use underscore, why this should be different?
2. Wrap some imports to 80 column
2015-06-09 22:20:05 +02:00
Andreas Rumpf
25a1987517
Merge pull request #2780 from flaviut/cleanup-crc
...
Use SHA1 instead of CRC
2015-06-09 15:10:21 +02:00
Oscar Campbell
f0b6c03b26
Merge branch 'devel' into bugfix-2858-testament-sources-system-wide
2015-06-07 13:17:06 +02:00
Andreas Rumpf
380d617f86
Merge pull request #2867 from Araq/fix-2584
...
Fixes #2584
2015-06-07 10:51:35 +02:00
Araq
54750f608d
fixes #2774
2015-06-06 13:25:20 +02:00
Araq
d94fcb38f0
fixes #2687
2015-06-06 11:59:36 +02:00
Araq
a730a974ed
fixes #2854
2015-06-06 11:59:35 +02:00
Araq
706080dcbd
fixes 'noreturn' regression for Visual C++
2015-06-06 11:59:34 +02:00
Dominik Picheta
1cf1610bdf
Rename errUndeclaredProcedure to errUndeclaredRoutine.
2015-06-05 14:50:14 +01:00
Andreas Rumpf
62376c0657
Merge pull request #2824 from yglukhov/js-ct-lambda-lifting
...
Perform lambda lifting for compile-time stuff when targeting JS.
2015-06-05 13:04:02 +02:00
Andreas Rumpf
f8326ad4c0
Merge pull request #2859 from nanoant/patch/norewrite-pragma
...
{.noRewrite.} pragma for term rewriting
2015-06-05 12:53:15 +02:00
Dominik Picheta
16da925a0a
Removed nimsuggest from this repo.
2015-06-04 23:25:29 +01:00
Dominik Picheta
2d9a24f3f6
Hopefully fixes nimsuggest building against the compiler package.
2015-06-04 23:07:57 +01:00
Oscar Campbell
cdf631c508
Merge branch 'devel' into bugfix-2858-testament-sources-system-wide
2015-06-04 22:43:18 +02:00
Dominik Picheta
5d6f16cc1a
Got rid of errUndeclaredProcedureField.
2015-06-04 16:39:38 +01:00
Dominik Picheta
22f6017ab8
Fixes #2584
...
Better compiler errors for accessing undeclared fields, calling undeclared
procedures and procedure fields.
2015-06-04 13:55:48 +01:00
pdw
9764ba933b
Dropped 'T' from types
2015-06-04 13:15:07 +02: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
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
yglukhov
e9a57e9706
Fixed codegen for DotDot magic
2015-06-04 12:00:27 +03:00
Oscar Campbell
071ccf3d02
Add "safety compilation". Improved, fixed messages
...
- node ext searcher also looks for "iojs" if no node(js?) found.
- koch ensures the local work dir compiler is freshly compiled before executing the tests.
- the tester can only run in the repo dir - now the compiler and libs used are also explicitly the local dirs - so no confusion from system wide pathing ("sufficiently sandboxed").
- fixed expectations in tmitems.nim test to match changes in json mod.
- re-layouted the columns / row printing slightly, making test fails pop out more, and everything "normal" layed back.
2015-06-04 07:33:27 +02:00
Ryan Gonzalez
8beed96106
Colors!
2015-06-02 18:47:43 -05: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
Oscar Campbell
dd30bab480
Restructure branching slighty. Fix error message.
2015-06-01 23:49:04 +02: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
Stefan Talpalaru
50e96ad939
the Go GC - initial implementation
2015-05-31 19:07:44 +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
1b4db5a34c
Implement #2811 - Unicode en-dash (U+2013) as hump/snake alt.
2015-05-31 01:31:06 +02:00