3.2 BASIC TCL RULES

This section specifies the rules for composing TCL command strings.

3.2.1 TCL Command String

A TCL command line is structured as follows:

    label> command-text       !comment
The fields are:

All fields, including the command text itself, are optional, and blank lines are ignored.

Examples:

  1. IMGCOPY FROM=IN TO=OUT !Simple copy
  2. START> IMOCOPY FROM=IN TO=OUT !Simple copy
  3. VECMUL (1, 2, 3, 4, 5) + !Vector multiply (5, 6, 7, 8, 9) !Continued line

3.2.2 Name Rules

A "name" in TCL is a character string used to refer to procs, files, labels, libraries, variables, and functions.

3.2.2.1 TCL Standard Names

The names for variables, labels, and functions follow the rules for TCL "standard" names.

A standard name contains fifteen or fewer characters, starts with a letter, an underscore, or a dollar sign, and contains characters from the following character set.

Examples of standard names:

$APLIB I _a1111 L_01

The following variable names are reserved:

AND OR NOT _HELPVU _PANEL _TYPE _MESSAGE Implicit variables listed in Section 3.3.2.7.

In general, programmers should avoid names beginning with a dollar sign ($) or an underscore (_).

3.2.2.2 Library Names

TAE library names are host-dependent. For example, under VAX/VMS implementations of TAE, library names are directory names or logical names assigned to directory names; under UNIX implementations, a library name is the path name of a directory or a shell symbol (introduced with "$") whose value is a directory path name. See Appendix A to the "TAE Command Language (TCL) User's Manual" for library naming conventions for a given host.

3.2.2.3 Proc Names

A valid proc name is one of the following: