next up previous contents
Next: Relational and Logical Operators Up: Types, Operators and Expressions Previous: Types, Operators and Expressions

Simple Data Types



Table: A complete list of built-in Darwin types.
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. $1, 1.1, 1.01, 1.001, \ldots$
integer Integers. $\ldots -2, -1, 0, 1, 2 \ldots$
posint Integers greater than zero $1, 2, 3, \ldots$
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 $x\ldots y$ 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




next up previous contents
Next: Relational and Logical Operators Up: Types, Operators and Expressions Previous: Types, Operators and Expressions
Gaston Gonnet
1998-09-15