No description
Find a file
2021-05-11 16:24:38 +02:00
examples first commit 2013-10-16 12:56:19 -07:00
src Add more tcl versions 2015-08-21 19:39:15 -07:00
LICENSE Create LICENSE 2016-07-31 13:27:33 +02:00
README.md Add a short README 2021-05-11 16:24:38 +02:00
tcl.nimble babel -> nimble 2015-08-19 21:50:33 -07:00

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}'"