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
1answer
237 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 ...
2
votes
0answers
345 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
1answer
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 ...
1
vote
0answers
38 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 ...
2
votes
1answer
171 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 ...
1
vote
0answers
37 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 ...
5
votes
2answers
78 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: ...
4
votes
2answers
163 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: ...