mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 09:02:58 +03:00
Merge pull request #1695 from AleoHQ/abnf-named-params
[ABNF] Improve some rule names.
This commit is contained in:
commit
355570d727
@ -1674,11 +1674,11 @@ Go to: _[block](#user-content-block), [function-parameters](#user-content-functi
|
|||||||
<a name="function-parameters"></a>
|
<a name="function-parameters"></a>
|
||||||
```abnf
|
```abnf
|
||||||
function-parameters = self-parameter [ "," ]
|
function-parameters = self-parameter [ "," ]
|
||||||
/ self-parameter "," function-inputs
|
/ self-parameter "," named-parameters
|
||||||
/ function-inputs
|
/ named-parameters
|
||||||
```
|
```
|
||||||
|
|
||||||
Go to: _[function-inputs](#user-content-function-inputs), [self-parameter](#user-content-self-parameter)_;
|
Go to: _[named-parameters](#user-content-named-parameters), [self-parameter](#user-content-self-parameter)_;
|
||||||
|
|
||||||
|
|
||||||
<a name="self-parameter"></a>
|
<a name="self-parameter"></a>
|
||||||
@ -1686,17 +1686,17 @@ Go to: _[function-inputs](#user-content-function-inputs), [self-parameter](#user
|
|||||||
self-parameter = [ %s"&" / %s"const" ] %s"self"
|
self-parameter = [ %s"&" / %s"const" ] %s"self"
|
||||||
```
|
```
|
||||||
|
|
||||||
<a name="function-inputs"></a>
|
<a name="named-parameters"></a>
|
||||||
```abnf
|
```abnf
|
||||||
function-inputs = function-input *( "," function-input ) [ "," ]
|
named-parameters = named-parameter *( "," named-parameter ) [ "," ]
|
||||||
```
|
```
|
||||||
|
|
||||||
Go to: _[function-input](#user-content-function-input)_;
|
Go to: _[named-parameter](#user-content-named-parameter)_;
|
||||||
|
|
||||||
|
|
||||||
<a name="function-input"></a>
|
<a name="named-parameter"></a>
|
||||||
```abnf
|
```abnf
|
||||||
function-input = [ %s"const" ] identifier ":" type
|
named-parameter = [ %s"const" ] identifier ":" type
|
||||||
```
|
```
|
||||||
|
|
||||||
Go to: _[identifier](#user-content-identifier), [type](#user-content-type)_;
|
Go to: _[identifier](#user-content-identifier), [type](#user-content-type)_;
|
||||||
|
@ -1009,14 +1009,14 @@ function-declaration = *annotation [ %s"const" ] %s"function" identifier
|
|||||||
block
|
block
|
||||||
|
|
||||||
function-parameters = self-parameter [ "," ]
|
function-parameters = self-parameter [ "," ]
|
||||||
/ self-parameter "," function-inputs
|
/ self-parameter "," named-parameters
|
||||||
/ function-inputs
|
/ named-parameters
|
||||||
|
|
||||||
self-parameter = [ %s"&" / %s"const" ] %s"self"
|
self-parameter = [ %s"&" / %s"const" ] %s"self"
|
||||||
|
|
||||||
function-inputs = function-input *( "," function-input ) [ "," ]
|
named-parameters = named-parameter *( "," named-parameter ) [ "," ]
|
||||||
|
|
||||||
function-input = [ %s"const" ] identifier ":" type
|
named-parameter = [ %s"const" ] identifier ":" type
|
||||||
|
|
||||||
; A circuit member constant declaration consists of
|
; A circuit member constant declaration consists of
|
||||||
; the `static` and `const` keywords followed by
|
; the `static` and `const` keywords followed by
|
||||||
|
Loading…
Reference in New Issue
Block a user