Merge branch 'master' of github.com:Araq/Nimrod

This commit is contained in:
dom96
2011-04-24 14:13:52 +01:00
4 changed files with 36 additions and 12 deletions

View File

@@ -140,6 +140,8 @@ if [ $# -eq 1 ] ; then
chmod 644 $docdir/tut1.txt
cp doc/tut2.txt $docdir/tut2.txt || exit 1
chmod 644 $docdir/tut2.txt
cp doc/manual.html $docdir/manual.html || exit 1
chmod 644 $docdir/manual.html
cp doc/mytest.cfg $docdir/mytest.cfg || exit 1
chmod 644 $docdir/mytest.cfg
cp doc/c2nim.pdf $docdir/c2nim.pdf || exit 1
@@ -270,6 +272,8 @@ if [ $# -eq 1 ] ; then
chmod 644 $libdir/pure/parsexml.nim
cp lib/pure/pegs.nim $libdir/pure/pegs.nim || exit 1
chmod 644 $libdir/pure/pegs.nim
cp lib/pure/redis.nim $libdir/pure/redis.nim || exit 1
chmod 644 $libdir/pure/redis.nim
cp lib/pure/regexprs.nim $libdir/pure/regexprs.nim || exit 1
chmod 644 $libdir/pure/regexprs.nim
cp lib/pure/ropes.nim $libdir/pure/ropes.nim || exit 1

View File

@@ -1,6 +1,23 @@
Installation
============
Bootstrapping from github
-------------------------
To get the source code you need either of these:
* A working web browser + tar(or equivalent):
https://github.com/Araq/Nimrod/tarball/master
* wget + tar:
``wget --no-check-certificate "https://github.com/Araq/Nimrod/tarball/master"``
* git: ``git clone git://github.com/Araq/Nimrod.git``
After downloading the source (and extracting it), you need to extract build/csources.zip then you can bootstrap with:
* ``./build.sh`` or ``build.bat`` (Windows)
* ``nimrod c koch``
* ``koch boot -d:release``
Installation on Linux/UNIX
--------------------------

View File

@@ -142,18 +142,19 @@ proc newStringTable*(mode: TStringTableMode): PStringTable {.
result.counter = 0
newSeq(result.data, startSize)
proc newStringTable*(keyValuePairs: openarray[string],
mode: TStringTableMode = modeCaseSensitive): PStringTable {.
rtl, extern: "nst$1WithPairs".} =
## creates a new string table with given key value pairs.
## Example::
## var mytab = newStringTable("key1", "val1", "key2", "val2",
## modeCaseInsensitive)
result = newStringTable(mode)
var i = 0
while i < high(keyValuePairs):
result[keyValuePairs[i]] = keyValuePairs[i + 1]
inc(i, 2)
when false:
proc newStringTable(keyValuePairs: openarray[string],
mode = modeCaseSensitive): PStringTable {.
rtl, extern: "nst$1WithPairs".} =
## creates a new string table with given key value pairs.
## Example::
## var mytab = newStringTable("key1", "val1", "key2", "val2",
## modeCaseInsensitive)
result = newStringTable(mode)
var i = 0
while i < high(keyValuePairs):
result[keyValuePairs[i]] = keyValuePairs[i + 1]
inc(i, 2)
proc newStringTable*(keyValuePairs: openarray[tuple[key, val: string]],
mode: TStringTableMode = modeCaseSensitive): PStringTable {.

View File

@@ -76,6 +76,8 @@ Additions
returns a ``TFile`` and raises an exception in case of an error.
- The compiler now might use a hashing for string case statements depending
on the number of string literals in the case statement.
- Added a wrapper for ``redis``.
- The compiler now supports array, sequence and string slicing.
2010-10-20 Version 0.8.10 released