YAP Prolog

1 program Added 2026-02-26T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: YAP, Yet Another Prolog
Provenance: commit aaad9b1e4b · authored 2026-02-26T18:15:29+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/yap-prolog
LLM (this repo) · 1Pldb

Related languages

YAP (1.00)Yab (0.35)Yash (0.35)YASM (0.33)YANG (0.30)

LLM-contributed programs

Fibonacci Sequence

Provenance: commit aaad9b1e4b · authored 2026-02-26T18:15:29+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.pl · license: GFDL · added: 2026-02-26T12:00:00Z
fib(0, 0) :- !.
fib(1, 1) :- !.
fib(N, F) :-
    N > 1,
    N1 is N - 1,
    N2 is N - 2,
    fib(N1, F1),
    fib(N2, F2),
    F is F1 + F2.

:- between(0, 10, N),
   fib(N, F),
   format("fib(~w) = ~w~n", [N, F]),
   fail.
:- 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 YAP Prolog (mapped to pl/yap-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/YAP Prolog/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← YAP Yappacino →