Add two chapters, finally get things working.
This commit is contained in:
parent
765db69e09
commit
395f3d0849
8 changed files with 141 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
Nimrod is a powerful staticly typed language that allows the programmer expressivness without comprimizing run-time performance.
|
||||
Nimrod is a powerful statically typed language that allows the programmer expressiveness without compromising run-time performance.
|
||||
|
||||
``` nimrod
|
||||
import tables, strutils
|
||||
|
||||
|
|
@ -17,3 +18,37 @@ for word, frequency in wordFrequencies:
|
|||
|
||||
echo "The most frequent word is '", word, "'"
|
||||
```
|
||||
|
||||
# Getting Started
|
||||
When installing Nimrod, you have two options: downloading a copy directly from git, or downloading a prepackaged distribution from the website
|
||||
|
||||
## Downloading a Nimrod Distribution
|
||||
To get started with Nimrod, head over to the [downloads page](http://nimrod-lang.org/download.html) and download the version you'd like.
|
||||
|
||||
The Windows distribution comes with the MinGW compiler, which is recommended, but if you'd like to use your own compiler, download the version without MinGW.
|
||||
|
||||
On Mac and Linux, it is recommended to use either GCC or Clang.
|
||||
|
||||
| | i386 | amd64 |
|
||||
| -- | ---- | ----- |
|
||||
| Windows | [Download](http://nimrod-lang.org/download/nimrod_0.9.4_windows_i386_full.zip) ([w/o MinGW](http://nimrod-lang.org/download/nimrod_0.9.4_windows_i386_slim.zip))| [Download](http://nimrod-lang.org/download/nimrod_0.9.4_windows_amd64_full.zip) ([w/o MinGW](http://nimrod-lang.org/download/nimrod_0.9.4_windows_amd64_slim.zip)) |
|
||||
| Mac | NA | [Download](http://nimrod-lang.org/download/nimrod_0.9.4_macosx_amd64.zip) |
|
||||
| Linux | [Download](http://nimrod-lang.org/download/nimrod_0.9.4_linux_i386.tar.gz) | [Download](http://nimrod-lang.org/download/nimrod_0.9.4_linux_amd64.tar.gz) |
|
||||
|
||||
Once you have downloaded the appropriate distribution and extracted the files somewhere convenient, feel free to place the `bin` directory in the path for easier access.
|
||||
|
||||
## Downloading from Git
|
||||
To install Nimrod from git, ensure that you have gcc installed on Windows, Linux, and BSDs and clang on Mac. Afterwards, run the following series of commands to download and bootstrap Nimrod:
|
||||
|
||||
```
|
||||
git clone -b master git://github.com/Araq/Nimrod.git
|
||||
cd Nimrod
|
||||
git clone --depth 1 git://github.com/nimrod-code/csources
|
||||
cd csources
|
||||
sh build.sh # Replace with build.bat on windows
|
||||
cd ..
|
||||
bin/nimrod c koch
|
||||
./koch boot -d:release
|
||||
```
|
||||
|
||||
Once compiled, you may want to add the `bin` directory to your path for easy access.
|
||||
Loading…
Add table
Add a link
Reference in a new issue