FOCAL

1 program Added 2025-10-28T16:03:12Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: FOCAL-69
Provenance: commit 1e433afe58 · authored 2025-10-28T17:03:12+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

5 sources · pl_id: pl/focal
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q1389363

Related languages

Forcal (0.31)FOCUS (0.19)FormCalc (0.16)FoxPro (0.15)Free Pascal (0.14)

LLM-contributed programs

Lunar Lander game in FOCAL-69

Provenance: commit 1e433afe58 · authored 2025-10-28T17:03:12+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.foc · added: 2025-10-28T16:03:12Z
01.10 A "LUNAR LANDER",T,T,"COMMANDS: G=GO, S=STATUS, Q=QUIT",T
01.20 S L=100;S V=50;S F=1000;S T=0
01.30 T "ALTITUDE: ",%8.2,L," VELOCITY: ",%8.2,V," FUEL: ",%8.2,F,T
01.40 A "COMMAND? ",C;I (C-0G)1.5,2.1,1.5;I (C-0S)1.6,3.1,1.6;I (C-0Q)1.7,4.1,1.7
01.50 T "INVALID COMMAND",T;G 1.4
01.60 G 1.3
01.70 T "QUITTING",T;Q
02.10 A "BURN TIME (SEC)? ",B;I (B)2.2,2.2,2.3
02.20 S B=0
02.30 I (F-B)2.4,2.4,2.5
02.40 S B=F
02.50 S T=T+1;S F=F-B;S V=V-B*1.8;S L=L-V-.9*B;I (L)5.1,5.1,1.3
03.10 G 1.3
04.10 Q
05.10 T T,"CRASHED AT ",%8.2,V," M/S",T;I (V-10)5.2,5.2,5.3
05.20 T "PERFECT LANDING",T;Q
05.30 T "YOU BLEW IT",T;Q

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 FOCAL (mapped to pl/focal). 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/FOCAL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Fob Focal-2D →