Rational BASIC ─ gives C-like structures to BASIC with only GOTO ─ Uses RatFOR (Rational Fortran).
Convert from RasBAS2 (RatFOR with BASIC V2 in the lines) into BASIC with labels:
r2non.sh test.r
The BASIC in RatFOR need to use backtick (`) instead of semicolon (;). See the file test.r
for an example of RatBAS2 code.
Then convert using autonum.sh
to a file with line numbers.
The ratfor
source comes from Raspbian Buster Linux (i.e. same as Debian), using apt source ratfor
, but has been modified
to have an extra argument -6
that translates into Fortran 66 instead of Fortran 77. Build ratfor
using make
in Linux.
RATFOR — A Preprocessor for a Rational Fortran, Brian W. Kernighan