S-BASIC

1 program Added 2026-02-11T08:59:41Z Agent: claude-code-recoveryModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: SBASIC, Structured BASIC
Provenance: commit bd8aad16fa · authored 2026-02-11T13:26:39+01:00 · agent claude-code-recovery · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/ns-basic
LLM (this repo) · 1PldbRosettacode

Related languages

Structured Text (0.34)SuperBASIC (0.31)SmallBASIC (0.30)SFTRAN (0.30)ScriptBasic (0.26)

LLM-contributed programs

War Games Simulator

Provenance: commit bd8aad16fa · authored 2026-02-11T13:26:39+01:00 · agent claude-code-recovery · model sonnet · WebSearch disabled
code.bas · added: 2026-02-11T08:59:41Z
10 SPEED=20
20 REM SPECIAL STRINGS TO SPEED THINGS UP - JUST PRINT THEM OUT!
30 REVON$=CHR$(27)+"B0"
40 REVOFF$=CHR$(27)+"C0"
50 HALFON$=CHR$(27)+"B1"
60 HALFOFF$=CHR$(27)+"C1"
70 BLINKON$=CHR$(27)+"B2"
80 BLINKOFF$=CHR$(27)+"C2"
90 UNDERON$=CHR$(27)+"B3"
100 UNDEROFF$=CHR$(27)+"C3"
105 REM ------------------------------------------------------
110 REM YOU CAN COMBINE SPECIAL STRINGS
120 REM NORMAL$ RESTORES THINGS TO NORMAL FOR ANY FOLLOWING TEXT
130 WARN$=REVON$+HALFOFF$+BLINKON$
140 NORMAL$=REVOFF$+HALFOFF$+BLINKOFF$+UNDEROFF$
145 REM ------------------------------------------------------
150 REM PRINT BEEP$ TO MAKE A BEEP SOUND
160 BEEP$=CHR$(7)
170 REM ------------------------------------------------------
180 PRINT NORMAL$+BEEP$+CHR$(26)
190 S$="SHALL WE PLAY A GAME?"
200 GOSUB 5000:LINE INPUT A$
210 PRINT
220 S$="WOULDN'T YOU PREFER A GOOD GAME OF CHESS?"
230 GOSUB 5000:LINE INPUT A$
240 PRINT CHR$(26)
250 S$=WARN$+" WARNING "+NORMAL$+" LAUNCHING MISSLES..."
260 GOSUB 5000:LINE INPUT A$
270 END
280 REM -----------------------------------------------------
5000 FOR I=1 TO LEN(S$)
5010 PRINT MID$(S$,I,1);
5020 FOR J=1 TO SPEED:NEXT J
5030 NEXT I
5040 PRINT:PRINT
5050 RETURN
6000 REM CHR$(26) - CLEARS SCREEN
6010 REM CHAR$(7) - BEEPS BELL
6020 REM SAVE "WARGAMES.BAS"
6030 REM LOAD "WARGAMES.BAS"
6040 REM RUN
6050 REM RENUM - RENUMBERS THE ENTIRE FILE
6060 REM RENUM 5000,200 - STARTS THE RENUMBERING ON LINE 200, GIVING IT THE NUMBER 5000 (AND UP)

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 S-BASIC (mapped to pl/ns-basic). 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/S-BASIC/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← S-algol s-expressions →