Asterix comes with a small standard library. Prototypes for the functions can found in the appropriate include files.
This module provide functions for standard conversions.
function StringToInt(str : string) : int;
function IntToString(i : int) : string;
function StringToReal(str : string) : real;
function RealToString(r : real) : string;
function IntToReal(i : int) : real;
function RealToInt(r : real) : int;
function IntToChar(i : int) : char;
function CharToInt(c : char) : int;
This module provides an interface for I/O operations.
function WriteChar(ch : char) : bool;
function WriteInt(i : int) : bool;
function WriteLine() : bool;
function WriteReal(r : real) : bool;
function WriteString(s : string) : bool;
function Random() : real;
This function yields a random real number , such that
.
function StringCopy(str : string) : string;