Questions tagged [tcl]

Tool Command Language was invented by John Ousterhout as a way to make it easy to write little languages for configuring EDA tools, but it has grown far beyond those humble beginnings to become a general scripting language with built-in asynchronous I/O and Unicode strings while supporting paradigms such as object-oriented programming and coroutines.

Filter by
Sorted by
Tagged with
2 votes
1 answer
30 views

Expect script that tests if a passwordless connection is setup

I have written a simple expect script to tell me if a passwordless connection is set up. ...
user avatar
  • 217
2 votes
1 answer
360 views

A clock and a fortune: a full screen clock with random quotes in Tcl/Tk

I've written a small Tcl/Tk script for a friend that displays the current time, as well as a quote. He uses it in some project with a Raspberry Pi, and since I didn't want to cobble up something up in ...
user avatar
  • 18.9k
2 votes
0 answers
674 views

Translate between Tcl and Python List

I want to know if the following parser covers every possible cases, and if the code can be cleaner/better organized. Python 3 code: ...
user avatar
1 vote
1 answer
2k views

Executing remote command using expect from C++

I wrote some code to execute remote commands over ssh, using expect, from c++. The code works but is a bit of a mess of c / c++ since there doesn't seem to be an idiomatic way to achieve much of what ...
user avatar
1 vote
0 answers
48 views

tcl script to parse C++ source code for "using namespace"

Experimenting with vera++ to validate some C++ source files. https://bitbucket.org/verateam/vera/wiki/Home vera++ is expandable by providing your own rules in tcl. To interface with the vera++ parser ...
user avatar
  • 91.7k
2 votes
1 answer
231 views

tcl script to parse C++ source code for type identifiers

Experimenting with vera++ to validate some C++ source files. https://bitbucket.org/verateam/vera/wiki/Home vera++ is expandable by providing your own rules in tcl. To interface with the vera++ parser ...
user avatar
  • 91.7k
1 vote
0 answers
43 views

tcl script to parse C++ source code for object identifiers

Experimenting with vera++ to validate some C++ source files. https://bitbucket.org/verateam/vera/wiki/Home vera++ is expandable by providing your own rules in tcl. To interface with the vera++ parser ...
user avatar
  • 91.7k
5 votes
2 answers
84 views

Calculating positions along the edges of a rectangle

I had the following three Tcl procedures, which calculate positions along three edges of a rectangle: ...
user avatar
  • 1,684
4 votes
2 answers
181 views

Tcl loop idea: for_index_item

I often need to loop through a list of items and need both the index position, and the item itself: ...
user avatar
  • 650