1 Nit is an expressive language with a script-like syntax, a friendly type-system and aims at elegance, simplicity and intuitiveness.
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.
6 The Nit Compiler (nitc) produces efficient machine language binaries.
10 * Pure Object-Oriented.
11 * Multiple Inheritance.
12 * Realist typing policy.
13 * Light and clear syntax.
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
25 Those are available in most Linux distributions
27 $ sudo apt-get install build-essential ccache libgc-dev graphviz libunwind-dev pkg-config
29 Important files and directories:
31 * benchmarks/ Script to bench the compilers
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)
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
44 * share/ Common resources used by tools
45 * src/ The Nit tool sources (written in Nit)
46 * tests/ Non-regression test-suite
52 $ bin/nitc examples/hello_world.nit
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.
58 $ . misc/nit_env.sh install
60 More information: <http://www.nitlanguage.org>