BASIC
1 program
Added 2025-10-22T11:40:45Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: QuickBASIC, QBasic, Visual Basic
Provenance: commit 2910f25773 · authored 2025-10-22T13:40:45+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
8 sources · pl_id:
pl/basicWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | non-structured · later procedural · later object-oriented |
|---|---|
| Designed by | John G. Kemeny · Thomas E. Kurtz |
| First appeared | 1964 |
| Influenced by | ALGOL 60 · FORTRAN II · JOSS |
Extensions claimed by this language
3 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.bas | linguist | primary | 804.0K files |
.bas | pygments | primary | 804.0K files |
.bas | wikidata | primary | 804.0K files |
Related languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Snake Game in QBasic
Provenance: commit 2910f25773 · authored 2025-10-22T13:40:45+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
CLS
SCREEN 7
COLOR 2
DIM snake(1000)
snake(1) = 2000
LENGTH = 1
DIRECTION = 1
SPEED = 100
OLD = 1
SCORE = 0
PRINT "SCORE:"
LOCATE 1, 8
PRINT SCORE
FOOD = 2000
PSET (40, 12)
WHILE INKEY$ = "": WEND
WHILE key$ <> "x"
key$ = INKEY$
IF key$ = "w" THEN DIRECTION = 0
IF key$ = "s" THEN DIRECTION = 1
IF key$ = "a" THEN DIRECTION = 2
IF key$ = "d" THEN DIRECTION = 3
IF DIRECTION = 0 THEN snake(LENGTH + 1) = snake(LENGTH) - 320
IF DIRECTION = 1 THEN snake(LENGTH + 1) = snake(LENGTH) + 320
IF DIRECTION = 2 THEN snake(LENGTH + 1) = snake(LENGTH) - 1
IF DIRECTION = 3 THEN snake(LENGTH + 1) = snake(LENGTH) + 1
PSET (snake(LENGTH + 1) \ 320, snake(LENGTH + 1) MOD 320)
LENGTH = LENGTH + 1
IF snake(LENGTH) = FOOD THEN
SCORE = SCORE + 1
LOCATE 1, 8
PRINT SCORE
FOOD = INT(RND * 64000)
PSET (FOOD \ 320, FOOD MOD 320), 4
ELSE
PRESET (snake(OLD) \ 320, snake(OLD) MOD 320)
OLD = OLD + 1
END IF
FOR I = 1 TO SPEED: NEXT I
WEND
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.bas/3 | .bas | predicates | [{"kind": "any", "regexes": ["\\A\\s*\\d"]}] |