1.1
Table:
A complete list of built-in Darwin types.
constant |
Any number or variable assigned |
1, 33, 203, 39293 |
|
a number. |
|
Type Name |
Description |
Example |
boolean |
boolean |
true, false |
real |
Real numbers. |
 |
integer |
Integers. |
 |
posint |
Integers greater than zero |
 |
name |
A legal Darwin name or a procedure |
abc, a1, proc() end: |
|
declaration |
|
string |
Any sequence of symbols surrounded |
'hello' |
|
by single quotes |
|
anything |
Any built-in type |
posint, string |
uneval |
An unevaluated procedure call. |
undefined() |
procedure |
A built-in Darwin routine |
mod, sin, exp |
equation |
A sequence of the form |
y=5, x=z |
|
expression=expression |
|
range |
where x,y are of type real |
1..100 |
list |
an ordered multiset (surrounded |
[a,b, c] |
array |
by [ , ] symbols) |
|
set |
an unordered set (surrounded |
{1, 2, 3} |
|
by { , } or (* *) |
|
matrix |
a two-dimensional square array |
[[1, 2], [3, 4]] |
database |
A Darwin sequence database |
DB |
grid |
A Darwin grid file |
g := CreateGrid() |
structure |
A built-in Darwin structured typed |
Tree, Match, Gene |
|