What: Frink - Source code formatter
Where: http://catless.ncl.ac.uk/Programs/Frink/ ftp://catless.ncl.ac.uk/pub/ Description: Program to prettify (like the indent command) your Tcl/Tk program. Frink can format, minimize and/or obfuscate your Tcl code. It can take some forms of your code and convert it to use message catalogs (used for internationalization). It applies a variety of heuristics to the code to try to detect possible errors. Supports only vanilla tcl - not extensions such as tclX, itcl, etc. Does however recognize namespace and interp commands. Check the first URL on a regular basis for updates. Does not permit commercial use. Currently at version 2.2.2p4, with an ancient 2.3.1 alpha also available at the above ftp site. Updated: 06/2001 Contact: mailto:[email protected] [Lindsay F. Marshall]
See also "debugging" in general.
Frink makes a brief appearance in a UnixReview.com column in April 2002 [1 ].
Note: Be very careful using frink to reformat your source code. Double check the frink results against the original source. It messes up your code every once and a while.
Question: What flags do you find most useful when using frink to check for errors/warnings?
frink -HJ source.tcl
although I sometimes use
frink -JF FFFFE source.tcl
to turn off a warning for the construct variable $varname PT
17 Feb 2006: http://folk.ntnu.no/tyridal/dist/frink-2.2.2-w32.zip
LV What are your preferences for frink pretty printing arguments?