Glish scripts are made up of a series of statements, which are
first compiled and then executed sequentially. Enclosing a series of
statements inside of braces (``{ }") groups them together
into a block that is treated syntactically as a single statement. These
statement blocks can be used to introduce local scope (see § 5.9, page
),
and as in many languages, groups of statements can be collected into functions
to provide subroutines, as described in Chapter 6, page
, and § 7.12, page
.
This section describes the various types of statements available
in Glish.
Strictly speaking, all Glish statements are terminated with semi-colons
(``;"). For the most part, though, the ; needn't be explicitly
present, since Glish can figure out when inserting a ; makes sense
and does so automatically. See § 5.11, page . In the
examples that follow, we omit the final ; from statements since in
general they are not necessary.