mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-24 18:12:28 +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"
|
||||
|
||||
circuit-type = identifier / self-type
|
||||
circuit-or-alias-type = identifier / self-type
|
||||
|
||||
; A tuple type consists of zero, two, or more component types.
|
||||
|
||||
@ -683,15 +683,9 @@ array-type = "[" type ";" array-dimensions "]"
|
||||
array-dimensions = natural
|
||||
/ "(" natural *( "," natural ) ")"
|
||||
|
||||
; Circuit, tuple, and array types form the aggregate types,
|
||||
; i.e. types whose values contain (sub-)values
|
||||
; (with the corner-case exception of the empty tuple value).
|
||||
; Scalar and the remaining types form all the types.
|
||||
|
||||
aggregate-type = tuple-type / array-type / circuit-type
|
||||
|
||||
; Scalar and aggregate types form all the types.
|
||||
|
||||
type = scalar-type / aggregate-type
|
||||
type = scalar-type / tuple-type / array-type / circuit-or-alias-type
|
||||
|
||||
; The lexical grammar given earlier defines product group literals.
|
||||
; 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),
|
||||
; so they are syntactically identical but semantically different.
|
||||
|
||||
circuit-construction = circuit-type "{"
|
||||
circuit-construction = circuit-or-alias-type "{"
|
||||
circuit-inline-element
|
||||
*( "," circuit-inline-element ) [ "," ]
|
||||
"}"
|
||||
@ -813,7 +807,7 @@ postfix-expression = primary-expression
|
||||
/ postfix-expression "." identifier
|
||||
/ 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] ".." [expression] "]"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user