SDF

1 program Added 2026-03-06T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Syntax Definition Formalism, SDF2, SDF3
Provenance: commit 468106205a · authored 2026-03-06T01:54:54+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

4 sources · pl_id: pl/sdf
LLM (this repo) · 1PldbWikipediaWikidata · Q3429683

Related languages

SDF2 (0.79)PSF (0.21)SFDL (0.16)Ampersand (0.15)CDDL (0.15)

LLM-contributed programs

Expression Grammar

Provenance: commit 468106205a · authored 2026-03-06T01:54:54+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.sdf · added: 2026-03-06T10:00:00Z
module Expressions

imports
  basic/Whitespace
  basic/IdentifierCon

exports

  sorts Exp

  lexical syntax
    [0-9]+ -> IntConst
    [a-zA-Z][a-zA-Z0-9]* -> Id

  context-free syntax
    IntConst    -> Exp {cons("Int")}
    Id          -> Exp {cons("Var")}
    Exp "+" Exp -> Exp {left, cons("Add")}
    Exp "*" Exp -> Exp {left, cons("Mul")}
    "(" Exp ")" -> Exp {bracket}

  context-free priorities
    Exp "*" Exp -> Exp >
    Exp "+" Exp -> Exp

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 SDF (mapped to pl/sdf). 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/SDF/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← SDAPL sdf-format →