Merge: introduce nit_env.sh to setup the shell environement
[nit.git] / README.md
1 Nit is an expressive language with a script-like syntax, a friendly type-system and aims at elegance, simplicity and intuitiveness.
2
3 Nit has a simple straightforward style and can usually be picked up quickly, particularly by anyone who has programmed before.
4 While object-oriented, it allows procedural styles.
5
6 The Nit Compiler (nitc) produces efficient machine language binaries.
7
8 Some Nit features:
9
10  * Pure Object-Oriented.
11  * Multiple Inheritance.
12  * Realist typing policy.
13  * Light and clear syntax.
14
15
16 Requirements:
17
18  * gcc          http://gcc.gnu.org/ (or a compatible C compiler)
19  * pkg-config   http://www.freedesktop.org/wiki/Software/pkg-config/
20  * ccache       http://ccache.samba.org/        to improve recompilation
21  * libgc-dev    http://www.hpl.hp.com/personal/Hans_Boehm/gc/
22  * graphviz     http://www.graphviz.org/        to enable graphs with the nitdoc tool
23  * libunwind    http://nongnu.org/libunwind
24
25 Those are available in most Linux distributions
26
27     $ sudo apt-get install build-essential ccache libgc-dev graphviz libunwind-dev pkg-config
28
29 Important files and directories:
30
31  * benchmarks/  Script to bench the compilers
32  * bin/         The Nit tools
33  * c_src/       C code of nitc (needed to bootstrap)
34  * clib/        C code needed by nitc to compile programs
35  * contrib/     Various Nit programs (may or may not be useful)
36  * doc/         Documentation
37  * examples/    Program examples written in Nit
38  * lib/         Nit standard library
39  * LICENCE      License of the software
40  * Makefile     Bootstrap the Nit tools
41  * misc/        Some additional files for commons text editors and tools
42  * NOTICE.md    List of the authors
43  * README       This file
44  * share/       Common resources used by tools
45  * src/         The Nit tool sources (written in Nit)
46  * tests/       Non-regression test-suite
47
48
49 How to start:
50
51     $ make
52     $ bin/nitc examples/hello_world.nit
53     $ ./hello_world
54
55 You can source `misc/nit_env.sh` to setup your environment like PATH, MANPATH and bash completion.
56 To have your environment automatically configured at login, just source it with `install` as argument.
57
58     $ . misc/nit_env.sh install
59
60 More information: <http://www.nitlanguage.org>