Starting B4P under Linux

Prev Next

Introduction

The ubuntu distribution is the preferred choice for B4P. All verifications have been carried out on ubuntu. This section provides an introduction on how to edit B4P Programs under Linux as well as different variants to start the B4P interpreter and B4P Programs:

The personal B4P folder

Under Linux, the personal B4P folder is subdirectory b4p in your home directory. This folder, which is also the initial starting directory after completing the installation, contains some a few programs:

  • main.b4p - Started if B4P is started without B4P program and finds this directory as starting directory.
  • hello world.b4p - Displays 'Hello World'
  • interactive.b4p - Starts B4P and goes directly into interactive mode
  • start B4P here.b4p - Simple utility to change starting directory. Copy this file into a different directory and run it from there. B4P will then look for "main.b4p" in that location.
  • B4P Reference Manual.b4p - Opens online documentation

username@domain:~$ cd b4p
username@domain:~/b4p$ ls
'B4P Reference Manual.b4p'  'hello world.b4p'   interactive.b4p   main.b4p  'start B4P here.b4p'
username@domain:~/b4p$