Refal

1 program Added 2025-11-05T08:17:57Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 0e63985b1e · authored 2025-11-05T09:17:57+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

5 sources · pl_id: pl/refal
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q2626418

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmspattern-matching · term-rewriting
Typingstrong, dynamic
Designed byValentin Turchin · S. Florentsev · V. Olyunin · et al
First appeared1968
Homepagehttp://www.refal.net

Related languages

RedPRL (0.25)Reflex (0.25)Reflow (0.25)Rigal (0.25)Rail (0.18)

LLM-contributed programs

Factorial function example

Provenance: commit 0e63985b1e · authored 2025-11-05T09:17:57+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.ref · added: 2025-11-05T08:17:57Z
<EXPR (FACT N)
= (N = 0 > 1
  | (FACT (MINUS N 1)) * N
  )
>;

(FACT 5)

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 Refal (mapped to pl/refal). 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/Refal/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ref-arf refer →