Index Expression

An index expression retrieves the given index from the identifier. The parameter of an index expression must resolve to a number.

Structure

IndexExpr = Expression '[' Expression? ']'

Example

array[0]
array[(10 + 5) / 3]
getArray()[getIndex()]

References