Interactive Hello World

BAP Online Manuals : Bap Language Tutorial : Hello World Examples : Interactive Hello World
Previous: Hello World Examples
Next: Compiled Hello World

2.2.1. Interactive Hello World

Well, we all know these first steps with a new system so we start immediately:

During the start-up of the system a console will open on your screen, displaying some messages about the boot process. Later a shell window should open with a welcome message, a prompt symbol and a flashing cursor (underline character '_').

If this does not happen, something went completely wrong. Please reconsult the installation manual or the 'read.me' file on the distribution media.

Now type:

> write("Hello World")

and confirm with ENTER. (Please DON'T type in the '>' character. It are used here to distinguish between system input and system output.)

The system should reply with (without the '<' character):

< Hello World;

Explanation:

After the boot-up of the transputer network, 'somewhere' on the net a 'shell' will be started. 'Somewhere' means that it really doesn't matter where this shell starts. A 'shell' is just a regular PROLOG program (a command interpreter), that parses and executes user commands and that allows interactive operating of the system. After ENTER was typed, the entered command was parsed and executed.


BAP Online Manuals : Bap Language Tutorial : Hello World Examples : Interactive Hello World
Previous: Hello World Examples
Next: Compiled Hello World