SDF2
1 program
Added 2026-03-16T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Syntax Definition Formalism 2
Provenance: commit 0188a19c67 · authored 2026-03-16T22:56:21+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)
Related languages
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Expression Grammar
Provenance: commit 0188a19c67 · authored 2026-03-16T22:56:21+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
module Expressions
imports
Basic
exports
sorts Exp Id IntConst
lexical syntax
[0-9]+ -> IntConst
[a-zA-Z][a-zA-Z0-9_]* -> Id
context-free syntax
IntConst -> Exp
Id -> Exp
Exp "+" Exp -> Exp {left, cons("Add")}
Exp "-" Exp -> Exp {left, cons("Sub")}
Exp "*" Exp -> Exp {left, cons("Mul")}
Exp "/" Exp -> Exp {left, cons("Div")}
"(" Exp ")" -> Exp {bracket}
context-free priorities
{left: Exp "*" Exp -> Exp
Exp "/" Exp -> Exp} >
{left: Exp "+" Exp -> Exp
Exp "-" Exp -> Exp}