Delphi

1 program Added 2026-02-06T14:08:25Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Object Pascal, Embarcadero Delphi
Provenance: commit 4b8a3e45af · authored 2026-02-06T15:08:49+01:00 · agent claude-code · model sonnet

Sources mentioning this language

5 sources · pl_id: pl/delphi
LLM (this repo) · 1PldbPygmentsWikipediaWikidata · Q81571

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.

Paradigmsimperative · structured
Typingstatic
Designed byNiklaus Wirth
First appeared1970
Influenced byALGOL W · Simula 67

Extensions claimed by this language

6 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.dpkwikidataprimary114.6K files
.dprwikidataprimary278.4K files
.paspygmentsprimary5.0M files
.paswikidataprimary5.0M files
.ppwikidataprimary2.4M files
.dprpygmentssecondary278.4K files

Related languages

Object Pascal (0.43)Pascal (0.34)Clascal (0.32)Pascal Script (0.20)PT Pascal (0.16)

LLM-contributed programs

Fibonacci Sequence

Provenance: commit 4b8a3e45af · authored 2026-02-06T15:08:49+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.pas · added: 2026-02-06T14:08:25Z
program Fibonacci;

{$APPTYPE CONSOLE}

uses
  SysUtils;

function Fib(n: Integer): Int64;
begin
  if n <= 1 then
    Result := n
  else
    Result := Fib(n - 1) + Fib(n - 2);
end;

var
  i: Integer;
begin
  WriteLn('Fibonacci sequence:');
  for i := 0 to 10 do
    WriteLn('Fib(', i, ') = ', Fib(i));
  ReadLn;
end.

Real programs from Software Heritage

2 samples mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
arrays2.pas · 333 B · ext .pas · seen 2256× in SWH
via fallback
swh:1:cnt:d9122e8a2adc578130a43181eff6e674b0d9d4e2;origin=https://github.com/pascalabcnet/pascalabcnet;anchor=swh:1:rev:e6e67c193c17759ee72a42dce8c2e98784b1ca3a;path=/TestSuite/arrays2.pas
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
type TArr = array[1..4] of integer;
     TMatr = array[1..3,1..3] of integer;
     
const a : TArr = (2,3,4,5);
      a2 : TMatr = ((1,2,3),(4,5,6),(7,8,9));
      
var b : TArr := (2,3,4,5);
    b2 : TMatr := ((1,2,3),(4,5,6),(7,8,9));
    
begin
assert(a[3] = 4);
assert(b[3] = 4);
assert(a2[2,2] = 5);
assert(b2[2,2] = 5);
end.
RBDMUtils.pas · 2195 B · ext .pas · seen 2228× in SWH
via fallback
swh:1:cnt:16d9306e3796192f288d337bcbf22cbf9cb8f497;origin=https://github.com/pascalabcnet/pascalabcnet;anchor=swh:1:rev:49378a6750a8ee31b5083e0a2f0876bc3e2aee4c;path=/bin/Lib/RBDMUtils.pas
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
unit RBDMUtils;
// (недокументированные возможности PT4TaskMaker)
interface
//Записывают в файл результатов информацию о выполненном задании для Робота или Чертежника
//taskname - имя задания без префикса RB и DM (префикс добавляется автоматически)
procedure ResRB(taskname: string); 
procedure ResDM(taskname: string); 

//Записывают в файл regtasks.dat в каталоге Lib информацию о новой группе заданий
//для Робота или Чертежника
//Group       - имя группы (от 1 до 7 символов, без префиксов),
//Description - описание группы (первый символ автоматически преобразуется к нижнему
//              регистру, так как описание указывается после двоеточия),
//TaskCount   - число заданий в группе (от 1 до 999),
//Units       - имя модуля, содержащего группу (используется в шаблоне). 
//              Если Units является пустой строкой, то считается, что имя модуля 
//              совпадает с именем группы Group, дополненным префиксом RB или DM.
function RegisterRB(Group, Description: string; TaskCount: integer; 
  Units: string): integer;
function RegisterDM(Group, Description: string; TaskCount: integer; 
  Units: string): integer;

implementation

procedure ResRB(taskname: string); 
  external '%PABCSYSTEM%\PT4\PT4PABC.dll' name 'resrb';
procedure ResDM(taskname: string); 
  external '%PABCSYSTEM%\PT4\PT4PABC.dll' name 'resdm';
function registerrb(Group, Description: string; TaskCount: integer; 
  Units: string): integer;
  external '%PABCSYSTEM%\PT4\PT4PABC.dll' name 'registerrb';
function registerdm(Group, Description: string; TaskCount: integer; 
  Units: string): integer;
  external '%PABCSYSTEM%\PT4\PT4PABC.dll' name 'registerdm';
end.

Contribute — propose a file extension

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