mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-25 10:32:13 +03:00
include grammar changes from pr 1290, regenerate md
This commit is contained in:
parent
d100db7396
commit
abd2919891
Binary file not shown.
@ -667,7 +667,7 @@ scalar-type = boolean-type / arithmetic-type / address-type / character-type
|
|||||||
|
|
||||||
self-type = %s"Self"
|
self-type = %s"Self"
|
||||||
|
|
||||||
circuit-type = identifier / self-type
|
circuit-or-alias-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.
|
||||||
|
|
||||||
@ -683,15 +683,9 @@ array-type = "[" type ";" array-dimensions "]"
|
|||||||
array-dimensions = natural
|
array-dimensions = natural
|
||||||
/ "(" natural *( "," natural ) ")"
|
/ "(" natural *( "," natural ) ")"
|
||||||
|
|
||||||
; Circuit, tuple, and array types form the aggregate types,
|
; Scalar and the remaining types form all the types.
|
||||||
; i.e. types whose values contain (sub-)values
|
|
||||||
; (with the corner-case exception of the empty tuple value).
|
|
||||||
|
|
||||||
aggregate-type = tuple-type / array-type / circuit-type
|
type = scalar-type / tuple-type / array-type / circuit-or-alias-type
|
||||||
|
|
||||||
; Scalar and aggregate types form all the types.
|
|
||||||
|
|
||||||
type = scalar-type / aggregate-type
|
|
||||||
|
|
||||||
; The lexical grammar given earlier defines product group literals.
|
; The lexical grammar given earlier defines product group literals.
|
||||||
; The other kind of group literal is a pair of integer coordinates,
|
; The other kind of group literal is a pair of integer coordinates,
|
||||||
@ -777,7 +771,7 @@ array-expression = array-construction
|
|||||||
; while the right one denotes an expression (a variable),
|
; while the right one denotes an expression (a variable),
|
||||||
; so they are syntactically identical but semantically different.
|
; so they are syntactically identical but semantically different.
|
||||||
|
|
||||||
circuit-construction = circuit-type "{"
|
circuit-construction = circuit-or-alias-type "{"
|
||||||
circuit-inline-element
|
circuit-inline-element
|
||||||
*( "," circuit-inline-element ) [ "," ]
|
*( "," circuit-inline-element ) [ "," ]
|
||||||
"}"
|
"}"
|
||||||
@ -813,7 +807,7 @@ postfix-expression = primary-expression
|
|||||||
/ postfix-expression "." identifier
|
/ postfix-expression "." identifier
|
||||||
/ identifier function-arguments
|
/ identifier function-arguments
|
||||||
/ postfix-expression "." identifier function-arguments
|
/ postfix-expression "." identifier function-arguments
|
||||||
/ circuit-type "::" identifier function-arguments
|
/ circuit-or-alias-type "::" identifier function-arguments
|
||||||
/ postfix-expression "[" expression "]"
|
/ postfix-expression "[" expression "]"
|
||||||
/ postfix-expression "[" [expression] ".." [expression] "]"
|
/ postfix-expression "[" [expression] ".." [expression] "]"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user