PDC Prolog

1 program Added 2026-03-11T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Turbo Prolog, PDC Prolog 4.0
Provenance: commit f8bb54e603 · authored 2026-03-11T20:28:34+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Visual Prolog (0.55)Turbo Prolog (0.46)Prolog (0.23)Ciao Prolog (0.23)Pilog (0.22)

LLM-contributed programs

Maximum Element in a List

Provenance: commit f8bb54e603 · authored 2026-03-11T20:28:34+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.pro · license: Public Domain · added: 2026-03-11T10:00:00Z
/* Maximum element in a list - PDC Prolog */
domains
  numlist = integer*
  num = integer

predicates
  max_list(numlist, num)
  max_of(num, num, num)

clauses
  max_of(X, Y, X) :- X >= Y, !.
  max_of(_, Y, Y).

  max_list([H], H) :- !.
  max_list([H|T], Max) :-
    max_list(T, TMax),
    max_of(H, TMax, Max).

goal
  max_list([3, 1, 4, 1, 5, 9, 2, 6, 5, 3], Max),
  write("Maximum: "), write(Max), nl.

Contribute — propose a file extension

Tell us where to find evidence about PDC Prolog (mapped to pl/pdc_prolog). 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/PDC Prolog/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← PDAsephtwo PDDL →