Next:
Variable Substitution
Up:
Tcl: A Generic
Previous:
Tcl Parsing and
Scripts
Tcl Command:
One or more
words
separated by white space.
First word is
command name
, others are
arguments
.
Returns a
string result
.
Tcl Script:
A Tcl script is a sequence of
commands
.
Commands are separated by newlines and/or semicolons.
Examples:
set a 22; set b 33 set a 22 set b 33 expr $a*($b+5)
CS488/688: Introduction to Interactive Computer Graphics
University of Waterloo
Computer Graphics Lab
cs488@cgl.uwaterloo.ca