Text

Prev Next

Introduction

The B4P language supports 3 different forms of text contents:

These text items can be used for following purposes:

Usage of string constants Plain text Text inside single quotation marks Text inside double quotation marks
String values example 'example' "example"
Base variable names (see 1) example[] 'example'[] "example"[]
Member variable names (see 1) example[example 2, ...] 'example'['example 2', ...] "example"["example 2", ...]
Table names [example:...] ['example':...] ["example":...]
Function names, called as procedures example;
example(...);
(Not supported) (Not supported)
Function names, called as functions in expressions = ... example();
= ... example(...);
(Not supported) (Not supported)
Reserved keywords true, false, else, tab, escape, new line (Not reserved if in quotation marks) (Not reserved if in quotation marks)

1 Attention: Different from other programming languages, variables in B4P are always specified by strings (or expressions returning strings) followed by a [] or [...] sequence. It appears outlandish, but has some key advantages which are described later in this manual.