Next: Tcl Example
Up: Tcl: A Generic
Previous: Tcl: A Generic
- A command is a sequence of words separated by white space.
- The first word in a command is the operation, the rest are arguments.
- A script is a sequence of commands separated by newlines or semicolons.
- $ causes variable substitution.
- [ ] causes command evaluation and substitution.
- " " quotes white space and semicolons.
- { } quotes all special characters (including newlines).
-
\
quotes next character, provides C-like substitutions.
-
#
for comments (at beginning of command).
CS488/688: Introduction to Interactive Computer Graphics
University of Waterloo
Computer Graphics Lab
cs488@cgl.uwaterloo.ca