DAPLEX

1 program Added 2026-03-11T17:31:35Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Functional Data Model Language
Provenance: commit 1864fd9f79 · authored 2026-03-11T18:32:03+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

ALFL (0.40)Rell (0.32)SDML (0.31)DG/L (0.30)PDL (0.29)

LLM-contributed programs

Employee Salary Queries

Provenance: commit 1864fd9f79 · authored 2026-03-11T18:32:03+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.daplex · added: 2026-03-11T17:31:35Z
-- DAPLEX schema declarations and query example
-- Functional Data Model by D. W. Shipman (1981)

DECLARE EMPLOYEE() -> ENTITY
DECLARE EMP_NAME(EMPLOYEE) -> STRING
DECLARE SALARY(EMPLOYEE) -> INTEGER
DECLARE DEPT(EMPLOYEE) -> DEPARTMENT

DECLARE DEPARTMENT() -> ENTITY
DECLARE DEPT_NAME(DEPARTMENT) -> STRING
DECLARE MANAGER(DEPARTMENT) -> EMPLOYEE

-- Query: retrieve name and department of employees with salary > 30000
FOR EACH E IN EMPLOYEE()
SUCH THAT SALARY(E) > 30000
    PRINT(EMP_NAME(E), DEPT_NAME(DEPT(E)))

-- Query: find all managers earning more than their department average
FOR EACH D IN DEPARTMENT()
    FOR EACH M IN MANAGER(D)
    SUCH THAT SALARY(M) > AVG(SALARY(E) FOR EACH E IN EMPLOYEE()
                               SUCH THAT DEPT(E) = D)
        PRINT(EMP_NAME(M), DEPT_NAME(D))

Contribute — propose a file extension

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