Starting B4P under MacOS

Prev Next

Introduction

B4P under MacOS is operational immediately after installation. No system reboot is necessary. This section provides an introduction on how to edit B4P Programs under MacOS as well as different variants to start the B4P languuage interpreter and B4P Programs:

The personal B4P folder

Under MacOS, 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

[~]$ cd b4p cd b4p
[b4p]$ ls
'B4P Reference Manual.b4p'  'hello world.b4p'   interactive.b4p   main.b4p  'start B4P here.b4p'
[b4p]$