Golog

1 program Added 2026-02-10T15:41:35Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit cc49927a3b · authored 2026-02-10T16:42:31+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/golog
LLM (this repo) · 1PldbWikipedia

Related languages

Golo (0.44)Go (0.31)GNU Prolog (0.29)ConGolog (0.27)Erlog (0.27)

LLM-contributed programs

Elevator Controller

Provenance: commit cc49927a3b · authored 2026-02-10T16:42:31+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.golog · added: 2026-02-10T15:41:35Z
/* Elevator Controller in Golog */

/* Primitive actions */
prim_action(open_door).
prim_action(close_door).
prim_action(move_up).
prim_action(move_down).

/* Preconditions */
poss(open_door, S) :- at_floor(F, S), not(door_open(S)).
poss(close_door, S) :- door_open(S).
poss(move_up, S) :- current_floor(F, S), F < 10, not(door_open(S)).
poss(move_down, S) :- current_floor(F, S), F > 1, not(door_open(S)).

/* Main control procedure */
proc(serve_floor(F),
    [current_floor(F)?;
     open_door;
     wait(3);
     close_door]
).

proc(go_to_floor(Target),
    while(current_floor(F) & F < Target, move_up);
    while(current_floor(F) & F > Target, move_down)
).

proc(elevator_control,
    while(true,
        pi(f, requested(f)?; go_to_floor(f); serve_floor(f))
    )
).

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 Golog (mapped to pl/golog). 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/Golog/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Golo (programming language) Golunar →