Installing the Nice compiler

At the moment, these instructions only deal with Unix-like systems.

Download the Nice.tar file. If you have root access type:
cd /usr
tar xf /location/to/nice.tar

Otherwise, you can install Nice to your home directory:
tar xf /location/to/Nice.tar

That's it! Nice automatically recognizes where it is installed.
The Nice tools are placed in the ./bin subdirectory. It may be a good idea to have it in your PATH.

Emacs mode

There is an Emacs mode for Nice, which makes Emacs the editor of choice for Nice programs!
To enable it, place this in your .emacs file:

;; Nice
(setq load-path
      (cons "~/lib/nice" load-path))
(setq auto-mode-alist
      (cons '("\\.nice$" . nice-mode) auto-mode-alist))
(autoload 'nice-mode "nice-mode" "Major mode for editing Nice programs." t)

The first line is there to ensure that the nice-mode.el file is in your Emacs load-path. You may also do that by moving the file to some standard place. Or you may have to replace ~ by /usr or /usr/local depending on where you installed Nice.

The Nice mode will then be loaded automatically when you open .nice files. Type C-h m for the documentation of the mode.