Tcl/Tk

1 program Added 2026-03-17T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Tcl Tk, Tool Command Language/Toolkit
Provenance: commit 45f8649731 · authored 2026-03-17T02:03:33+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)
LLM (this repo) · 1

Related languages

Tcl (0.69)CCL (0.35)DCL (0.33)NCAR Command Language (0.33)Jacl (0.32)

LLM-contributed programs

Fibonacci sequence

Provenance: commit 45f8649731 · authored 2026-03-17T02:03:33+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.tcl · license: Public Domain · added: 2026-03-17T10:00:00Z
proc fibonacci {n} {
    if {$n <= 1} {
        return $n
    }
    set a 0
    set b 1
    for {set i 2} {$i <= $n} {incr i} {
        set c [expr {$a + $b}]
        set a $b
        set b $c
    }
    return $b
}

for {set i 0} {$i <= 10} {incr i} {
    puts "fib($i) = [fibonacci $i]"
}

Contribute — propose a file extension

Tell us where to find evidence about Tcl/Tk (mapped to pl/tcl_tk). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Tcl-Tk/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Tcl TclX →