TCLCHECK(1L)TCLCHECK(1L)NAMEtclCheck - check bracket nesting for tcl programs.
SYNOPSIStclCheck [-cgijlmqs] [filename]...
DESCRIPTIONtclCheck does a simple bracket nesting check on tcl programs to help
you find missing or extra brackets. The program will often detect
things that are very likely typing errors but which the tcl interpreter
silently accepts. However, simple bracket matching is not all that use‐
ful for finding missing brackets and so the program also provides vari‐
ous ways of rpinting out the bracket "skeleton" of a program. This
gives a line numbered listing showing where all the brackets occur in
the program. It is usually very easy to spot errors from this.
OPTIONS-c By default tclCheck attempts to recognise comments so as to per‐
mit unmatching brackets in them. This flag turns this behaviour
off.
-e This flag enables checking for lines that have a \ followed by
spaces or tabs at their end. By default this test is not carried
out.
-g By default tclCheck pops its stack of brackets to a find a match
with } > ] > ). This flag turns this off.
-i This flag stops the printing of error messages beginning "Inside
a string".
-j Generates a compressed skeleton print out where indentation is
ignored when matching brackets (see -l).
-l Generates a compressed skeleton print out where nested matching
lines are paired up and removed. Matching includes any indenta‐
tion.
-m Removes from the skeleton print out bracket pairs that match up
directly on lines.
-q Do not generate any output unless exceptions are detected.
-s Generate a print out of the bracket skeleton of the whole pro‐
gram.
-t tiger mode - this will flag any single " that occur in places
where tcl would not detect the start of a string. By default
this is turned off, but it can be very useful for tracking down
som ehard to find problems.
BUGS
Bracket matching in tcl is an inexact science and the program takes a
very conservative view so valid structures will sometimes be flagged.
This is a feature not a bug!
July 20 1994 TCLCHECK(1L)