Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.22 KB

File metadata and controls

35 lines (23 loc) · 1.22 KB

b2t

https://github.com/microsoft/GW-BASIC

A BASIC to TypeScript Transpiler

b2t is a Python-based transpiler that converts BASIC code to TypeScript.

Usage

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.

Running Transpiled Code

After generating TypeScript code, you can execute it using tsx:

npm install -D tsx
npx tsx src/index.ts

References