Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Tcl Syntax checking.

Posted by Graham_Tasker (Graham_Tasker), 15 February 2005
We (Herschel project, Dutch Space) are using 'procheck' to syntax check a TCL scripts. However it does not pick up syntax errors inside procedure bodies. It also does not work with namespaces or packages. Does any one know of a checker with can be run on a unix system which will find these syntax (and other) errors.

Thanks (on behalf of the team) Graham

Posted by admin (Graham Ellis), 16 February 2005
Tcl syntax checking is inerrently difficult except as it runs ... Deferred block may contain anything, variables may contain code, etc, and nothing's going to get that 100%.   Please don't shoot the messenger  

I'm on the road this week (see - let me know if you would like a fuller reply when I'm back at my desk

Posted by Graham_Tasker (Graham_Tasker), 16 February 2005
I realize that Tcl syntax checking will not be simple and anywere neer 100% checking will be impossible.

But : the present syntax checker we have (procheck) is leading us into a force sense of security and leading to bad practises. (i.e poor or no use of namespaces and packages.), in some ways we may be better of with out it, but that is not my decision.  

I there fore would expect that almost any syntax checker would be an improvement on what we have. A fuller reply would be appreciated.

Posted by admin (Graham Ellis), 21 February 2005
Graham, I came across tcLex that claims working with namespaces as one of its features ... see

I was also thinking during the night (I'm sad!) that you could use Tcl's feature that it analyses both blocks of code and data with the same list engine to write a script that tuns on itself and at least presents the main blocks to you. The biggest early issue would be the need to tell the new line (end of command) and white space (parameter seperators) apart when looking to identify the command keywords.

Recursion where appropriate would allow you to go on and handle blocks such as proc definitions, conditional and loop blocks and namespaces.

Perhaps it's my training as a compiler writer that makes this look straightforward to me, but I'll probably have to add it to the list of "things I would like to do but don't have enough hours for" I'm afraid.  Would love to see something simple along these lines if you were to find a few hours to experiment!

Posted by patthoyts (patthoyts), 18 April 2005
Another Tcl syntax checking program you might try is Frink. See for a link and some more information.

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho