Prolog++

1 program Added 2026-03-13T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: PrologPP, Object-Oriented Prolog
Provenance: commit b7253e5c4a · authored 2026-03-13T00:55:17+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/prologpp
LLM (this repo) · 1Pldb

Related languages

ZZT-OOP (0.37)OOT (0.36)KOOL (0.30)SCOOP (0.29)SIMPOL (0.28)

LLM-contributed programs

Animal Class Hierarchy

Provenance: commit b7253e5c4a · authored 2026-03-13T00:55:17+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.pro · added: 2026-03-13T12:00:00Z
:- class animal.

:- iv name/1.
:- iv sound/1.

new(Name, Sound) :-
    name := Name,
    sound := Sound.

speak :-
    name(N), sound(S),
    format('~w says ~w!~n', [N, S]).

:- end_class animal.

:- class dog inherits animal.

new(Name) :- super::new(Name, woof).

fetch(Item) :-
    name(N),
    format('~w fetches the ~w~n', [N, Item]).

:- end_class dog.

:- class cat inherits animal.

new(Name) :- super::new(Name, meow).

purr :-
    name(N),
    format('~w purrs...~n', [N]).

:- end_class cat.

:- create(dog, D),
   D::new(rex),
   D::speak,
   D::fetch(ball),
   create(cat, C),
   C::new(whiskers),
   C::speak,
   C::purr.

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 Prolog++ (mapped to pl/prologpp). 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/Prolog++/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Prolog III prolog-d-linda →