https://github.com/mobluse/ratbas2
Rational BASIC ─ gives C-like structures to BASIC with only GOTO ─ Uses RatFOR (Rational Fortran)
https://github.com/mobluse/ratbas2
basic basic-programming basic-programming-language c64 commander-x16 commanderx16 cx16 fortran fortran66 goto ratfor vic20 x16
Last synced: about 2 months ago
JSON representation
Rational BASIC ─ gives C-like structures to BASIC with only GOTO ─ Uses RatFOR (Rational Fortran)
- Host: GitHub
- URL: https://github.com/mobluse/ratbas2
- Owner: mobluse
- License: bsd-2-clause
- Created: 2019-10-19T22:54:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-03T18:44:26.000Z (over 4 years ago)
- Last Synced: 2025-01-20T10:09:44.792Z (4 months ago)
- Topics: basic, basic-programming, basic-programming-language, c64, commander-x16, commanderx16, cx16, fortran, fortran66, goto, ratfor, vic20, x16
- Language: C
- Size: 46.9 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RatBAS2
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`](https://web.archive.org/web/20200530202921/http://temp.murray2.com/threads/basic-without-line-numbers.406/) 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](https://wolfram.schneider.org/bsd/7thEdManVol2/ratfor/ratfor.pdf), Brian W. Kernighan
[BASIC without line numbers?](https://web.archive.org/web/20200530202921/http://temp.murray2.com/threads/basic-without-line-numbers.406/)