mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-24 01:54:23 +03:00
[ABNF] Move two rules within file.
No content change, just layout change. Prepares for next change to the file.
This commit is contained in:
parent
2426fada7d
commit
b45a722d6b
@ -659,17 +659,6 @@ character-type = %s"char"
|
|||||||
|
|
||||||
scalar-type = boolean-type / arithmetic-type / address-type / character-type
|
scalar-type = boolean-type / arithmetic-type / address-type / character-type
|
||||||
|
|
||||||
; Circuit types are denoted by identifiers and the keyword `Self`;
|
|
||||||
; the latter is only allowed inside a circuit definition,
|
|
||||||
; to denote the circuit type being defined.
|
|
||||||
; Identifiers may also be type aliases;
|
|
||||||
; syntactically (i.e. without a semantic analysis),
|
|
||||||
; they cannot be distinguished from circuit types.
|
|
||||||
|
|
||||||
self-type = %s"Self"
|
|
||||||
|
|
||||||
identifier-or-self-type = identifier / self-type
|
|
||||||
|
|
||||||
; A tuple type consists of zero, two, or more component types.
|
; A tuple type consists of zero, two, or more component types.
|
||||||
|
|
||||||
tuple-type = "(" [ type 1*( "," type ) ] ")"
|
tuple-type = "(" [ type 1*( "," type ) ] ")"
|
||||||
@ -684,6 +673,17 @@ array-type = "[" type ";" array-dimensions "]"
|
|||||||
array-dimensions = natural
|
array-dimensions = natural
|
||||||
/ "(" natural *( "," natural ) ")"
|
/ "(" natural *( "," natural ) ")"
|
||||||
|
|
||||||
|
; Circuit types are denoted by identifiers and the keyword `Self`;
|
||||||
|
; the latter is only allowed inside a circuit definition,
|
||||||
|
; to denote the circuit type being defined.
|
||||||
|
; Identifiers may also be type aliases;
|
||||||
|
; syntactically (i.e. without a semantic analysis),
|
||||||
|
; they cannot be distinguished from circuit types.
|
||||||
|
|
||||||
|
self-type = %s"Self"
|
||||||
|
|
||||||
|
identifier-or-self-type = identifier / self-type
|
||||||
|
|
||||||
; Scalar and the remaining types form all the types.
|
; Scalar and the remaining types form all the types.
|
||||||
|
|
||||||
type = scalar-type / tuple-type / array-type / identifier-or-self-type
|
type = scalar-type / tuple-type / array-type / identifier-or-self-type
|
||||||
|
Loading…
Reference in New Issue
Block a user