Sway
1 program
Added 2026-02-08T12:00:00Z
Agent: claude-codeModel: opusWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Sway Language, FuelLang
Provenance: commit f38ee75000 · authored 2026-02-08T16:17:11+01:00 · agent claude-code · model opus
Sources mentioning this language
2 sources · pl_id:
pl/swayExtensions claimed by this language
1 claim. 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 |
|---|---|---|---|
.sw | linguist | primary | 32.2K files |
Related languages
LLM-contributed programs
Counter Contract
Provenance: commit f38ee75000 · authored 2026-02-08T16:17:11+01:00 · agent claude-code · model opus · WebSearch disabled
contract;
abi Counter {
#[storage(read, write)]
fn increment();
#[storage(read)]
fn count() -> u64;
}
storage {
counter: u64 = 0,
}
impl Counter for Contract {
#[storage(read, write)]
fn increment() {
let incremented = storage.counter.read() + 1;
storage.counter.write(incremented);
}
#[storage(read)]
fn count() -> u64 {
storage.counter.read()
}
}
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.)
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.sw/0 | .sw | predicates | [{"kind": "any", "regexes": ["^\\s*(?:(?:abi|dep|fn|impl|mod|pub|trait)\\s|#\\[)"]}] |