B2F readme (b2fs.lp)

This B2F is for SwiftForth. Since I only have demo version of
SwiftForth, I can not write B2F samples that include fsave.

B2F is first written for PET4TH (B2F.PET), to aid BASIC
programmers learn Forth. Some words are added to ANS Forth 94
so a new Forth user does not have to remember which word is
available which word is not. These words are in B2F layer. B2F
also has some BASIC features.

A test program is written, B2FTEST.B2F. This should run on
every Forth which has B2F layer.

Then B2F is ported to ANS Forth 94 (B2F.ANS). From here it is
customized to other Forth, including SwiftForth (B2FS.F). B2F
also acts like a standard. And the B2F source code can be a
help to switch to a new Forth system quickly.

The SwiftForth floating-point number is 64 bits or 8 bytes.
The integer is 32 bits.

B2F has fast and maximum precision floating point, string and
single precision integer. Prefix/sufix f for fast and maximum
precision floating-point, s for string and i for single
integer.

With the help of represent, I can write float>string which is
floating-point to string conversion routine. B2F will make a
Forth system suitable for general purpose application. The
output of float>string is formatted for easier reading.
: f. float>string type space ;
: f? f@ f. ;

This float>string routine is (sort of) copyrighted so that it
will not become GPL, but everyone is free to use, modify and
copy. This policy enables the routine to be used in a
commercial system.

SwiftForth s> (==??==) is changed to new s> which return true
if first string after second string.

New words are:
fsave is program
fload is include
mainword is starter
turnkey is program

Floating-point library FPMATH.F is assumed in directory
c:\swiftforth\lib\options

How to use:
( run SwiftForth )
include b2fs

How to test:
( run SwiftForth )
include b2fs
fload b2ftest.b2f

Do not use b2f013b.b2f, b2f016.b2f unless your SwiftForth is
not demo version.

Petrus Prawirodidjojo <petrusp_id@yahoo.com>