Sather Home Page

Section 6.7.9:
Yield Statement

This statement may only appear in the body of an iter. IT is a built-in routine call which suspends execution of the iter at the point at which it occurs, ready for resumption at the next executable statement. If there is an associated expression then this is returned to the invoking context before the execution in that context is resumed.

Concrete Syntax

yield statement = Yield_SY, [expression] ;

Abstract Syntax

Static Semantics

Dynamic Semantics


Specification Index Language Index Section 6 Index
Comments or enquiries should be made to Keith Hopper.
Page last modified: Wednesday, 25 April 2001.
Produced with Amaya