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
34 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. ...
  • 217
2 votes
1 answer
380 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 ...
  • 19.1k
2 votes
0 answers
767 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: ...
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 ...
2 votes
1 answer
241 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 ...
  • 92.9k
1 vote
0 answers
51 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 ...
  • 92.9k
5 votes
2 answers
85 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: ...
  • 1,684
4 votes
2 answers
194 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: ...
  • 650