Next: Other statements, Previous: Counter and timer statements, Up: Grammar [Contents][Index]
The coNCePTuaL statements presented in Communication statements, I/O statements, and Other statements are all known as simple statements. This section expands upon the statements already introduced by presenting complex statements. In its most basic form, a <complex_stmt> is just a <simple_stmt>. However, the primary purpose of a <complex_stmt> is to juxtapose simple statements and other complex statements into more expressive forms.
Complex statements take the following form:
<complex_stmt> | ::= | <simple_stmt>
[ THEN
<complex_stmt>] |
The constituent simple statements include FOR
loops, LET
bindings, IF
conditionals,
grouping constructs, and all of the statements introduced in
Communication
statements, I/O statements,
and Other
statements:
The remainder of this section describes in turn the THEN
construct
and each of the just-introduced <simple_stmt>
types.
• Combining statements: | Performing multiple statements in sequence | |
• Iterating: | Performing a statement multiple times | |
• Binding variables: | Lending values to variables | |
• Conditional execution: | Executing statements only if a condition is met | |
• Grouping: | Treating multiple statements as one |
Next: Other statements, Previous: Counter and timer statements, Up: Grammar [Contents][Index]