Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
![]() | Version 1.9 Build 1556 |
|
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 .)
As in many languages, groups of statements can be collected into functions
to provide subroutines. (See 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, because 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.