Trealla

1 program Added 2026-02-11T12:05:26Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Trealla Prolog
Provenance: commit 5a21a6c1de · authored 2026-02-11T13:06:07+01:00 · agent claude-code · model sonnet

Sources mentioning this language

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

Related languages

Trealla Prolog (0.73)Tau Prolog (0.38)Turbo Prolog (0.31)tuProlog (0.29)GNU Prolog (0.28)

LLM-contributed programs

Basic List Operations and Factorial

Provenance: commit 5a21a6c1de · authored 2026-02-11T13:06:07+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.pl · license: MIT · added: 2026-02-11T12:05:26Z
% List membership check
member(X, [X|_]).
member(X, [_|T]) :- member(X, T).

% List append
append([], L, L).
append([H|T], L, [H|R]) :- append(T, L, R).

% List length
length([], 0).
length([_|T], N) :- length(T, N1), N is N1 + 1.

% Factorial
factorial(0, 1).
factorial(N, F) :- N > 0, N1 is N - 1, factorial(N1, F1), F is N * F1.

Contribute — propose a file extension

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