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.
7 questions
3
votes
1
answer
52
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.
...
3
votes
1
answer
424
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 ...
5
votes
3
answers
1k
views
Translate between Tcl and Python lists
I want to know if the following parser covers every possible cases, and if the code can be cleaner/better organized.
Python 3 code:
...
2
votes
1
answer
3k
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 ...
3
votes
1
answer
285
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 ...
6
votes
2
answers
115
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:
...
5
votes
2
answers
239
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:
...