MBASIC

1 program Added 2025-02-10T14:30:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Microsoft BASIC
Provenance: commit 9d0cf969be · authored 2026-02-10T22:46:15+01:00 · agent claude-code · model sonnet

Sources mentioning this language

4 sources · pl_id: pl/mbasic
LLM (this repo) · 1PldbWikipediaWikidata · Q623610

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsimperative
Designed byMicrosoft
Influenced byBASIC
Homepagehttp://www.microsoft.com

Related languages

BASIC-80 (0.69)Microsoft BASIC (0.65)Microsoft Small Basic (0.57)Nascom BASIC (0.53)WordBasic (0.53)

LLM-contributed programs

Prime Number Generator

Provenance: commit 9d0cf969be · authored 2026-02-10T22:46:15+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.bas · added: 2025-02-10T14:30:00Z
10 REM Prime Number Generator
20 REM MBASIC Program to find prime numbers up to N
30 PRINT "Prime Number Generator"
40 PRINT
50 INPUT "Enter maximum number: ", N
60 IF N < 2 THEN PRINT "No primes less than 2": GOTO 200
70 PRINT "Prime numbers up to"; N; ":"
80 PRINT
90 FOR I = 2 TO N
100   ISPRIME = 1
110   IF I > 2 THEN IF I MOD 2 = 0 THEN ISPRIME = 0: GOTO 170
120   LIMIT = INT(SQR(I))
130   FOR J = 3 TO LIMIT STEP 2
140     IF I MOD J = 0 THEN ISPRIME = 0: GOTO 160
150   NEXT J
160   REM Check if prime flag is still set
170   IF ISPRIME = 1 THEN PRINT I
180 NEXT I
190 PRINT
200 END

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.)

Contribute — propose a file extension

Tell us where to find evidence about MBASIC (mapped to pl/mbasic). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/MBASIC/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Mazerunner mbox →