Sather Home Page

Section 6.8.10:
Array Expression

An array may be assigned to by using an array expression. If this expression is to be evaluated at compile time then all expressions must be constant. However, array expressions can also be used at run-time. Should the expression be different in size from the actual array size when executed, then elements are assigned in sequence from the beginning of the array until either there are no more target elements or there are no more source expressions to be assigned.

Concrete Syntax

array expression = Bar_SY, expression list, Bar_SY ;
expression list = expression, {Comma_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