“Convert the BAS files in my Downloads folder to BAS”
Or run it yourself:
filestarcli -i file.bas -c "convert to bas"
Runs on your computer, so your files stay on it. Works on Windows, macOS and Linux. 50 free conversions with the npm install, no account needed.
Can my AI agent convert gwbasic-tokenized-source to bas?
Yes. Install the Filestar CLI with npm install -g filestar and your agent can run filestarcli -i file.bas -c "convert to bas" on your computer, so your files stay on it.
A GW-BASIC or BASICA program saved in the interpreter's binary form instead of plain text: the file holds the program as a chain of lines whose keywords, operators and numbers are Microsoft's one- and two-byte tokens (leading byte FF), optionally 'protected' by a two-key byte cipher (leading byte FE). GW-BASIC and BASICA shipped with MS-DOS from 1983, and thousands of DOS-era BASIC programs circulated in this form; detokenizing it recovers the numbered source listing.
A BASIC source code file is a plain-text program in a BASIC dialect such as GW-BASIC, QBasic, QuickBASIC, QB64 or FreeBASIC, holding one statement per line.