Shen
1 program
Added 2025-10-22T15:26:15Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: Shen Language
Provenance: commit c39fc24ad8 · authored 2025-10-22T17:26:15+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
6 sources · pl_id:
pl/shenExtensions claimed by this language
2 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.shen | linguist | primary | 4.1K files |
.shen | pygments | primary | 4.1K files |
Related languages
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.)
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. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Pattern Matching Example in Shen
Provenance: commit c39fc24ad8 · authored 2025-10-22T17:26:15+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
(package pattern [intern]
(define unify
X X _ -> true
X Y Dict -> (unify-h X Y Dict))
(define unify-h
X Y Dict -> (let Value+- (assoc X Dict)
(if (value? Value+-)
(= Y (value-> Value+-))
(let NewDict (do (dict-update X Y Dict)
(dict-update Y X Dict))
true)))
where (variable? X)
X Y Dict -> (let Value+- (assoc Y Dict)
(if (value? Value+-)
(= X (value-> Value+-))
(let NewDict (do (dict-update X Y Dict)
(dict-update Y X Dict))
true)))
where (variable? Y)
[X | Y] [W | Z] Dict -> (and (unify X W Dict)
(unify Y Z Dict))
where (and (cons? [X | Y])
(cons? [W | Z]))
_ _ _ -> false)