tcl
Wrapper for the TCL programming language
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:23 |
Tags
Installation
nimble install tcl
choosenim install tcl
git clone https://github.com/nim-lang/tcl
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| tcl | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/nim-lang/tcl |
|---|---|
| Homepage | https://github.com/nim-lang/tcl |
| Registry Source | nimble_official |
README
Nim Wrapper for the TCL programming language
Installation
nimble install tcl
Quick Example
import std/[strformat]
import tcl
let
interp = CreateInterp()
if interp == nil:
quit "Cannot create Tcl interpreter"
if interp.Init() != TCL_OK:
quit "Cannot init the Tcl interpreter"
const
tclCmds = ["""puts "Tcl version: $tcl_version"""",
"""puts "Hello, World"
puts "Bye, World""""]
for cmd in tclCmds:
if interp.Eval(cmd) != TCL_OK:
quit &"Cannot execute '{cmd}'"