LEPROSY
Death Metal Systems Programming
Get StartedKeywords
Transpiles to CManual MemoryNo GCNo MercyBuilt for <€1

// What it is

C with a death metal soundtrack

Leprosy is a programming language named after the 1988 Death album. It transpiles to C — raw systems-level power, no runtime, no garbage collector.

The entire compiler was built in ~20 minutes using Claude Sonnet. Cost: under €1.

This web server was written in Leprosy itself.

💀

Manual Memory

You summon it. You perish it.

Transpiles to C

Native speed. Zero overhead.

🔗

Full C Interop

Declare any C function with backstage.

🎸

Death Metal Syntax

Functions are rip. Loops make you suffer.


// Quick Start

Rise from the grave

# Requires Go 1.21+
git clone <repo>
cd leprosy
go build -o lepc ./cmd/lepc
./lepc hello.lep -o hello
./hello

-- hello.lep
rip main() void {
    unleash x = 42
    scream("Leprosy lives")
    scream(x)
}

// Keywords

The vocabulary of death

KeywordC EquivalentMeaning
ripfunctionDefine a function
unleashvariableDeclare a variable
eternal#defineConstant value
offerreturnReturn a value
judgementifConditional branch
otherwiseelseThe other path
sufferforLoop
escapebreakExit a loop
screamprintfPrint to stdout
summonmallocAllocate memory
perishfreeFree memory
corpsestructDefine a struct
backstageexternDeclare a C function