| Imp |
Copyright (c) 1998-1999 Redshift
Software Inc. All Rights Reserved
|
2 |
Programs |
2.1 |
Control Structure |
||
|
|
|||
2.1.1 |
IF |
||
The format of if is as follows:
|
|||
2.1.2 |
LOOP |
||
The format of loop is as follows:
|
|||
2.1.3 |
CASE |
||
The format of case is as follows:
|
|||
2.1.4 |
GUARD |
||
|
The guard staement consists of a number of statements each followed by a conditional statement. The conditional statement may contain a handle statement that deals with the exception when the conditional expression executes. If the guard does not invoke a handle call the exception continues up the call chain. If an exception reaches the top of the call chain without being handled the program terminates. The format of the handle call is as follows:
The format of fail is as follows:
The format of recover is as follows: recover (exception type, [record]);
|
|
||
Reference |
|||||||
|
|
1 Lexical |
2 Programs |
3 Declarations |
4 Expressions |
5 Statements |
6 Preprocessor |
7 EBNF |