Tcl · online compiler

Run Tcl online

Run Tcl 8 online — the "everything is a string" language.

Version
Firecracker microVM live per-test verdicts multi-file compile

Tcl is the tool command language: absurdly regular syntax (everything is a command, every argument is a string), classic embedding host (EDA tools, Expect scripts, Tk GUIs).

Starter code

What you get in Tcl

Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.

tcl
Tcl 8
set n [gets stdin]
puts [expr {$n * 2}]
stdin →21
expected →42
FAQ

Common questions about Tcl on ls-judge

Tcl 8 or 9?
Tcl 8.x.
Tk (GUI)?
No — sandbox is headless.
Free?
Yes.
Entry filename?
main.tcl.
Further reading
Also try