-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
38 lines (31 loc) · 1.2 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
nibKame - a thin programming language like ML
Important:
This is a prealpha version.
At present, it cannot compile even Pervasive module!!
Please see Restrictions section below.
Dependencies for building programs:
- OCaml
- OMake (http://omake.metaprl.org/index.html)
- ExtLib (http://code.google.com/p/ocaml-extlib/)
- ocaml-quickcheck (https://github.com/alanfalloon/ocaml-quickcheck)
Dependencies for building documents:
- TeXLive-2010 (or newer)
- asymptote (http://asymptote.sourceforge.net/)
How to Build:
to build program
$ omake nibkamec
to build documents
$ omake doc
and you can compile test programs
$ omake test-exec
Restrictions:
Source codes written only with S-expression (.nkl file) can read.
Pattern matching is not supported.
All functions you can use are as follows:
* arithmetic operators: (~), (+), (-), ( * ), (/), (~.), (+.), (-.), ( *. ), (/.)
* comparative operators: (=), (<>), (<), (<=), (>), (>=)
* list manipulators: cons (::), car, hd, cdr, tl
* array manipulators: array-alloc, array-ref, array-set
* reference manipulators: ref, set
* display functions: print-int, print-float, print-string
* others: ignore, (;)