L3
1 program
Added 2026-02-16T17:59:22Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit f81b73c92d · authored 2026-02-16T19:00:07+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
LLM-contributed programs
Register File Example
Provenance: commit f81b73c92d · authored 2026-02-16T19:00:07+01:00 · agent claude-code · model sonnet · WebSearch disabled
-- Simple register example in L3
-- Defining a register file
type regType = bits(32)
construct reg { R0 R1 R2 R3 R4 R5 R6 R7 }
declare
{
GPR :: reg -> regType
PC :: regType
}
component GPR(n::reg) :: regType
{
value = match n
{
case R0 => 0
case _ => #GPR(n)
}
return value
}