[[Documentation]]

*Built-in Features

The currently supported built-in features are integer arithmetics and floating point number arithmetics. Vector arrays and strings will be supported in the near future.

Strings (such as "abc") can be written in programs. However, they are treated as symbols (such as 'abc' or just abc) at present. Multiline quoted strings (such as [[abc <newline> def]]) are also treated as symbols.

**Lists

The Prolog list syntax is available. List constructor atoms have three arguments and the name '.'.

***Syntax

 X=[A,B|Rest],Rest=[] 
is an abbreviated form of '.'(A,Tmp,Rest),'.'(B,Rest,Tmp),'[]'(Rest).

**Numbers

Integer arithmetics and floating point number arithmetics are available. Note that some features, for example bit-shift operator or cosine function, are not yet implemented.

Note that atoms are treated as numbers only if they are unary (i.e., one-argument) atoms.

***Syntax

 X = -2, p(345)
 X = 2.0, p(-3.14e-10)

***Operations
Currently, the following operations are available:

 int(+Float,-Int)           - cast
 float(+Int,-Float)         - cast
 '+'(+Int,+Int,-Int)        - integer operation,  as well as: - *       / mod
 '+.'(+Float,+Float,-Float) - floating operation, as well as: -.   *. /.


Front page List of pages Search Recent changes Backup   Help   RSS of recent changes