Nesting of statements

Irie Pascal places two limits on the maximum depth to which statements can be nested.

The first limit is a general limit and limits the maximum depth to which any statement can be nested inside any other statement. This limit is 256. NOTE: This does not mean that the maximum number of statements in a program is 256. This limits the depth of nesting (i.e. the depth to which statements contain other statements which in turn contain other statements). If you exceed this limit the compiler issues a fatal error message.

The second limit is more specific and limits the maximum depth to which the following kinds of statements can be directly or indirectly nested inside each other:

This second limit is 20. If you exceed this limit the compiler issues a error message and continues.