b2t is a Python-based transpiler that converts BASIC code to TypeScript.
python b2t.py input.bas output.ts
- input.bas: The input file containing BASIC code.
- output.ts: The output file where the transpiled TypeScript code will be written.
After generating TypeScript code, you can execute it using tsx
:
npm install -D tsx
npx tsx src/index.ts