Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: Expressions as Statements Up: The Glish 2.7 User Manual DRAFT Previous: include Expression


Statements

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.




next up previous contents index
Next: Expressions as Statements Up: The Glish 2.7 User Manual DRAFT Previous: include Expression   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15