Merge pull request #1695 from AleoHQ/abnf-named-params

[ABNF] Improve some rule names.
This commit is contained in:
Collin Chin 2022-03-20 15:13:57 -07:00 committed by GitHub
commit 355570d727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View File

@ -1674,11 +1674,11 @@ Go to: _[block](#user-content-block), [function-parameters](#user-content-functi
<a name="function-parameters"></a>
```abnf
function-parameters = self-parameter [ "," ]
/ self-parameter "," function-inputs
/ function-inputs
/ self-parameter "," named-parameters
/ 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>
@ -1686,17 +1686,17 @@ Go to: _[function-inputs](#user-content-function-inputs), [self-parameter](#user
self-parameter = [ %s"&" / %s"const" ] %s"self"
```
<a name="function-inputs"></a>
<a name="named-parameters"></a>
```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
function-input = [ %s"const" ] identifier ":" type
named-parameter = [ %s"const" ] identifier ":" type
```
Go to: _[identifier](#user-content-identifier), [type](#user-content-type)_;

View File

@ -1009,14 +1009,14 @@ function-declaration = *annotation [ %s"const" ] %s"function" identifier
block
function-parameters = self-parameter [ "," ]
/ self-parameter "," function-inputs
/ function-inputs
/ self-parameter "," named-parameters
/ named-parameters
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
; the `static` and `const` keywords followed by