previous         next         contents

4. Standard library

The Depot4 standard library consists of a set of modules that are useful in defining translators. They offer services, which for efficiency or convenience, may be better implemented in the host language.

4.1. Dp4OP

This is the Output on Protocol module.

4.2. Dp4Messages

If loaded, procedures ERROR and WARNING of Dp4OP are modified such, that instead of the numbers a text is printed. Dp4Messages contains all this texts and a few access procedures.
Although someone may be surprised, it turned out to be more portable to have a module compiled on different platforms than to read just from some text file.
To change some or all texts, edit the source and recompile it.

4.3. Dp4List

This module offers a simple symbol management. Together with flexible arrays (FLEX) it supports the construction of symbol tables in Ml4 (without any pointer handling).

The index range of lists starts with one (thus corresponding to FLEX).

4.4. Dp4Util

This module collects some useful functions which were needed by system itself but may also be useful in other projects. There may be slight differences among different Depot4 implementations, e.g. in Depot4/Oberon, they were proper procedures with a VAR parameter instead of the return value.
At least, this module contains these functions:

4.5. Dp4Tools

This module is heavily dependent from the implementation language and its the runtime system, and thus specified in Appendix D.


    previous         next         contents


© J. Lampe 1997-2002   juergen_lampe@firemail.de               (14-Mar-2002)