[ABNF] Incorporate change for unspecified array sizes.

That change was made on master concurrently with this PR. This commit integrates
the concurrent changes.
This commit is contained in:
Alessandro Coglio 2021-09-06 13:10:55 -07:00
parent dab6f494b1
commit 593aac5636

View File

@ -667,11 +667,14 @@ tuple-type = "(" [ type 1*( "," type ) ] ")"
; and an indication of dimensions.
; There is either a single dimension,
; or a tuple of one or more dimensions.
; Each dimension is either a natural or is unspecified.
array-type = "[" type ";" array-dimensions "]"
array-dimensions = natural
/ "(" natural *( "," natural ) ")"
array-dimension = natural / "_"
array-dimensions = array-dimension
/ "(" array-dimension *( "," array-dimension ) ")"
; The keyword `Self` denotes the enclosing circuit type.
; It is only allowed inside a circuit type declaration.