
132 Appendix A6 OxGauss Language Reference
type: one of
fn, keyword, matrix, proc, string
function-type: one of
fn, keyword, proc
A character matrix is a matrix where the elements holds strings rather than numeric
data. Since the underlying storage type is a double, the strings cannot be longer than 8
characters.
A string array is a vector or matrix of strings. For this type, there is no restriction
on the length of the strings stored in the array.
A6.4.1.1 Type conversion
When a double is converted to an int, the fractional part is discarded. For example,
conversion to int of 1.3 and 1.7 will be 1 on both occasions. When an int is converted
to a double, the nearest representation will be used.
A single element of a string (a character) is of type int. An int or double can be
assigned to a string element, which first results in conversion to int, and then to a single
byte character.
A6.4.2 Lvalue
An lvalue is an object to which an assignment can be made.
A6.5 OxGauss Program
program:
external-statement-list
external-declaration-list
A OxGauss program consists of a sequence of statements and external declarations.
These either reserve storage for an object, or serve to inform of the existence of objects
created elsewhere. All statements at the external level make up the main section of the
program.
A6.6 External declarations
external-declaration-list:
external-declaration
external-declaration-list external-declaration
external-declaration:
declare-statement
external-statement
function-statement
Komentarze do niniejszej Instrukcji