next up previous
Next: Field access Up: Expressions Previous: Class instance creation

Array creation

Array creation[50]:
RULE: Expression ::= 'new' TypeName Dimensions COMPUTE
  CHAINSTART Dimensions.ArrTyp=TypeName.Type;
  PrimaryContext(Expression,Dimensions.ArrTyp);
END;

RULE: Expression ::= 'new' PrimitiveType Dimensions COMPUTE
  CHAINSTART Dimensions.ArrTyp=PrimitiveType.Type;
  PrimaryContext(Expression,Dimensions.ArrTyp);
END;

RULE: Dimension ::= '[' Expression ']' COMPUTE
  Expression.Required=longType;
END;
This macro is invoked in definition 45.



2008-09-11