Skip to content

nim-lang/tcl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Nim Wrapper for the TCL programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7

Languages