Commit Graph

7456 Commits

Author SHA1 Message Date
Andreas Rumpf
bd394eaeda Merge pull request #2954 from avsej/fix-rest-syntax-in-astspec
Fix rest syntax in astspec
2015-06-18 13:39:07 +02:00
Dominik Picheta
6f1cc914c5 Merge pull request #2948 from apense/patch-4
More documentation of AST
2015-06-18 12:10:31 +01:00
Sergey Avseyev
137c836616 Fix reST syntax in doc/astspec.txt 2015-06-18 14:04:15 +03:00
Sergey Avseyev
273d6ffc16 Remove trailing spaces in doc/astspec.txt 2015-06-18 13:57:20 +03:00
yglukhov
9ae4a0425a Fixes #2617, fixes addr of obj downcast. 2015-06-18 13:35:21 +03:00
Andreas Rumpf
1949eb0f92 Merge pull request #2952 from fmamud/devel
Add G+ Nim community
2015-06-18 12:18:27 +02:00
Andreas Rumpf
7131d6231d Merge pull request #2947 from yglukhov/fix-fix-2917
Fixed fix of #2917
2015-06-18 12:07:14 +02:00
Felipe Mamud
e5e80d2036 Add G+ Nim community
The G+ Nim community is another place where discussions related to the language happen. Read and follow various articles, posts and interesting links about Nim.
2015-06-18 00:21:08 -03:00
apense
3491047141 Fixed silly continue
The old if/else was weird and unnecessary
2015-06-17 20:14:53 -04:00
apense
ea1809a931 Added isSorted proc
Linear-time verification that an openarray is sorted. Operates on the same parameters as `sort`. Seems much cheaper for large sorts.
2015-06-17 19:56:32 -04:00
apense
49465c470c More documentation of AST
Also gave some examples
2015-06-17 16:54:02 -04:00
yglukhov
50d2d54fb0 Fixed fix of #2917 2015-06-17 23:26:38 +03:00
Andreas Rumpf
ef762c6ef0 Merge pull request #2938 from apense/patch-4
Added uints to Leaf nodes
2015-06-17 20:51:28 +02:00
Andreas Rumpf
59a2d3b814 Merge pull request #2944 from apense/patch-5
Fixed gcc batch issue
2015-06-17 20:50:44 +02:00
Andreas Rumpf
314fe6b54a Merge pull request #2945 from yglukhov/fix-2917
Fixes #2917
2015-06-17 20:50:08 +02:00
yglukhov
5824b1c839 Fixes #2917 2015-06-17 21:16:18 +03:00
apense
80d6b0e9ca Fixed gcc batch issue
See #18 on csources. Basically, some Windows system have gcc as a gcc.bat file. This isn't an issue unless you're calling from another batch file (like here). The call chain will follow to gcc.bat and end there, meaning only one command is processed. Using "CALL" before the other batch command will keep the calls in the main batch file after completion, meaning the compilation will actually succeed this way [see technet](https://technet.microsoft.com/en-us/library/bb490873.aspx). Otherwise you have to hope there is a gcc.exe somewhere instead
2015-06-17 13:07:38 -04:00
apense
68aa6309e4 Added uints to Leaf nodes
[This question on SO](http://stackoverflow.com/questions/30311110/how-to-create-a-nnkuint16lit-nimnode) made me realized these weren't in there
2015-06-16 18:57:19 -04:00
Andreas Rumpf
e2bcf22a84 Merge pull request #2768 from gokr/fix-repr
Fixes #2749, traverse full inheritance for reprRecord
2015-06-16 20:48:51 +02:00
Andreas Rumpf
ddb62747e8 Merge pull request #2936 from alexamy/alexamy-patch-1
Tutorial Part I update
2015-06-16 20:46:55 +02:00
Andreas Rumpf
ad1ac76567 Merge pull request #2851 from stefantalpalaru/gogc
the Go GC (using the gccgo implementation)
2015-06-16 20:46:23 +02:00
Stefan Talpalaru
b487d4e425 conditional TGenericSeq extension 2015-06-16 15:15:17 +02:00
Alexander
77b51df09c Update tut1.txt 2015-06-16 16:14:23 +03:00
Alexander
5e2d7e81a2 Update tut1.txt 2015-06-16 16:00:33 +03:00
Alexander
abe1051374 Update tut1.txt 2015-06-16 15:58:21 +03:00
Andreas Rumpf
3772944fdb Merge pull request #2931 from apense/patch-8
Added some documentation
2015-06-16 13:10:14 +02:00
Andreas Rumpf
042c0146cd Merge pull request #2914 from yglukhov/js-exceptions
Fixed and slightly changed exception handling in JS.
2015-06-16 13:07:34 +02:00
apense
66ad9e3985 Fleshed out type section
Hopefully this table renders correctly. Not sure this is the best place for this stuff.
2015-06-15 19:37:16 -04:00
apense
d75bdc31b4 Added import-type statements
import, import .. except, export, include, etc.
2015-06-15 18:55:09 -04:00
apense
998f1fa67a Minor updates; addition of var return in procs 2015-06-15 18:35:05 -04:00
yglukhov
ffa4f8dc99 Added noUnhandledHandler 2015-06-15 23:30:09 +03:00
apense
8c8e975bcd Added static types
I put this within the type section, but I'm not sure if it should go here. It has a broader use. Should it get its own section?
2015-06-15 16:27:53 -04:00
yglukhov
fa1f3aecce Unhandled exceptions handling brought back. 2015-06-15 23:08:38 +03:00
apense
3c9d655b88 Added raw string literal function calls docs
Got curious as to how re"..." worked.
2015-06-15 16:03:04 -04:00
Andreas Rumpf
116a60caeb Merge pull request #2856 from fowlmouth/patch-4
made string compatible with openarray[char]
2015-06-15 21:04:50 +02:00
yglukhov
090fc33641 Fixed and slightly changed exception handling. 2015-06-15 21:49:49 +03:00
Andreas Rumpf
77abb8f8b4 Merge pull request #2908 from apense/patch-7
Updated random functions. Fixes #2907
2015-06-15 20:23:40 +02:00
apense
fce697b043 Corrected capitalization
Sorry to be making so many changes.
2015-06-15 13:37:58 -04:00
apense
7275a035b5 Updated type section a little
Objects are ubiquitous. Concepts don't use ``concept`` in their name.

Really, a lot more could be added here.
2015-06-15 13:30:09 -04:00
apense
ac6ea4b76d Clarified AST
Generic parameters are treated in the next paragraph. Revised text for future compatibility
2015-06-15 12:58:44 -04:00
Simon Hafner
8618530413 switched over from assert to doAssert for guide 2015-06-15 08:34:11 -05:00
Andreas Rumpf
0272da0188 Merge pull request #2906 from nanoant/patch/more-about-colors
More flexible msg colors
2015-06-15 14:51:20 +02:00
Adam Strzelecki
b4d3a27753 msgs: Append/color warning/hint kind in msgWriteln
Rather than embedding it into the message format text itself. This also makes
possible to color warning/hint kind.
2015-06-15 11:26:54 +02:00
Adam Strzelecki
2ba3642544 msgs: styledMsgWriteln compatible with styledEcho
1. Introduce styledMsgWriteln which can be used same way as styledEcho.

2. Make file names and positions use bright white like in other compilers, so
   only message types are colored.
2015-06-15 11:26:54 +02:00
Adam Strzelecki
1057770ce5 colors: Introduce resetStyle enum & use templates
1. Introduce TerminalCmd enum and resetStyle that can be issued to issue
   resetAttributes within styledEcho arguments.

2. Use templates to resolve styledEcho arguments for performance reasons.

3. Try to avoid calling trailing write "\n" and reset attributes where possible.
2015-06-15 11:26:53 +02:00
Adam Strzelecki
806dfe976d colors: Use colors by default on terminals 2015-06-15 11:26:53 +02:00
Stefan Talpalaru
8624654c57 TMemRegion -> MemRegion 2015-06-15 09:18:44 +02:00
Stefan Talpalaru
fe0b6d74f5 cleanup 2015-06-15 08:56:07 +02:00
Stefan Talpalaru
bdac85f2cf Merge branch 'devel' into gogc 2015-06-15 08:44:02 +02:00
Stefan Talpalaru
657d6f9de2 finalizer support 2015-06-15 08:36:55 +02:00