Go Clone for Microsoft Basic 2.2 for CP/M

gombasic
Login

gombasic

gombasic is a Go interpreter for a Microsoft CP/M MBASIC-style dialect of BASIC.

It is intentionally retro: line numbers, GOTO, GOSUB, RETURN, FOR/NEXT, DATA/READ, string variables, numeric variables, arrays, files, and an interactive prompt.

The goal is not to modernize BASIC. The goal is to understand it, preserve its odd little weather system, and make it runnable with a clean Go implementation.

Goals

Non-goals

Initial command shape

gombasic
gombasic file.bas
gombasic --dialect mbasic file.bas
gombasic --strict file.bas

Development

go generate ./...
go test ./...
go run ./cmd/gombasic

Documentation freshness rule

Any meaningful change to behavior, architecture, commands, interfaces, semantics, testing strategy, or supported features must review:

Documentation updates must happen in the same unit of work as the code change.

If no documentation updates are required, the change must explicitly say so.