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/prologppRelated languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Animal Class Hierarchy
Provenance: commit b7253e5c4a · authored 2026-03-13T00:55:17+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
:- 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.