OPS5

1 program Added 2026-02-06T18:00:40Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit 9fc154650e · authored 2026-02-06T19:01:35+01:00 · agent claude-code · model sonnet

Sources mentioning this language

4 sources · pl_id: pl/ops5
LLM (this repo) · 1PldbWikipediaWikidata · Q7072853

Related languages

OpShin (0.25)OptimJ (0.17)OpenABL (0.15)OpenACC (0.15)OpenLisp (0.14)

LLM-contributed programs

Monkey and Bananas Problem

Provenance: commit 9fc154650e · authored 2026-02-06T19:01:35+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.ops5 · added: 2026-02-06T18:00:40Z
(literalize goal
  status)

(literalize monkey-status
  location
  on-top-of
  holding)

(literalize object
  name
  location
  on-top-of
  weight)

(p initial-facts
  -->
  (make goal ^status get-bananas)
  (make monkey-status ^location t5-7 ^on-top-of floor ^holding blank)
  (make object ^name bananas ^location t2-2 ^on-top-of ceiling ^weight light)
  (make object ^name ladder ^location t4-4 ^on-top-of floor ^weight heavy))

(p walk-to-ladder
  (goal ^status get-bananas)
  (monkey-status ^location <> t4-4 ^on-top-of floor)
  (object ^name ladder ^location <l>)
  -->
  (modify 2 ^location <l>)
  (write |Monkey walks to ladder|))

(p climb-ladder
  (goal ^status get-bananas)
  (monkey-status ^location <l> ^on-top-of floor)
  (object ^name ladder ^location <l>)
  -->
  (modify 2 ^on-top-of ladder)
  (write |Monkey climbs ladder|))

(p grab-bananas
  (goal ^status get-bananas)
  (monkey-status ^on-top-of ladder ^holding blank ^location <l>)
  (object ^name bananas ^location <l>)
  -->
  (modify 2 ^holding bananas)
  (modify 1 ^status eat-bananas)
  (write |Monkey grabs bananas|))

(p eat-bananas
  (goal ^status eat-bananas)
  -->
  (write |Monkey eats bananas|)
  (halt))

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 OPS5 (mapped to pl/ops5). 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/OPS5/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ops-3 OpShin →