same element type. Typically, open arrays are used as
formal parameters for functions.
- ArrayType = { '[' ArrayLength ']' } ElementType.
- ArrayLength = Expression.
- ElementType = Type.
+ ArrayType = '[' [ ArrayLength ] ']' ElementType .
+ ArrayLength = Expression .
+ ElementType = Type .
[] uint8
[2*n] int
Parameters = '(' [ ParameterList ] ')' .
ParameterList = ParameterSection { ',' ParameterSection } .
ParameterSection = [ IdentifierList ] Type .
- Result = [ Type ] | '(' ParameterList ')' .
+ Result = Type | '(' ParameterList ')' .
// Function types
func ()