mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-20 08:01:42 +03:00
Merge pull request #1759 from AleoHQ/abnf-numeric-literals
[ABNF] Add rule for numeric literals.
This commit is contained in:
commit
e1f962fcf6
@ -378,18 +378,26 @@ integer-literal = unsigned-literal
|
|||||||
Go to: _[signed-literal](#user-content-signed-literal), [unsigned-literal](#user-content-unsigned-literal)_;
|
Go to: _[signed-literal](#user-content-signed-literal), [unsigned-literal](#user-content-unsigned-literal)_;
|
||||||
|
|
||||||
|
|
||||||
|
<a name="numeric-literal"></a>
|
||||||
|
```abnf
|
||||||
|
numeric-literal = integer-literal
|
||||||
|
/ field-literal
|
||||||
|
/ product-group-literal
|
||||||
|
```
|
||||||
|
|
||||||
|
Go to: _[field-literal](#user-content-field-literal), [integer-literal](#user-content-integer-literal), [product-group-literal](#user-content-product-group-literal)_;
|
||||||
|
|
||||||
|
|
||||||
<a name="atomic-literal"></a>
|
<a name="atomic-literal"></a>
|
||||||
```abnf
|
```abnf
|
||||||
atomic-literal = integer-literal
|
atomic-literal = numeric-literal
|
||||||
/ field-literal
|
|
||||||
/ product-group-literal
|
|
||||||
/ boolean-literal
|
/ boolean-literal
|
||||||
/ address-literal
|
/ address-literal
|
||||||
/ character-literal
|
/ character-literal
|
||||||
/ string-literal
|
/ string-literal
|
||||||
```
|
```
|
||||||
|
|
||||||
Go to: _[address-literal](#user-content-address-literal), [boolean-literal](#user-content-boolean-literal), [character-literal](#user-content-character-literal), [field-literal](#user-content-field-literal), [integer-literal](#user-content-integer-literal), [product-group-literal](#user-content-product-group-literal), [string-literal](#user-content-string-literal)_;
|
Go to: _[address-literal](#user-content-address-literal), [boolean-literal](#user-content-boolean-literal), [character-literal](#user-content-character-literal), [numeric-literal](#user-content-numeric-literal), [string-literal](#user-content-string-literal)_;
|
||||||
|
|
||||||
|
|
||||||
<a name="symbol"></a>
|
<a name="symbol"></a>
|
||||||
|
@ -163,9 +163,11 @@ string-literal-element = not-double-quote-or-backslash
|
|||||||
integer-literal = unsigned-literal
|
integer-literal = unsigned-literal
|
||||||
/ signed-literal
|
/ signed-literal
|
||||||
|
|
||||||
atomic-literal = integer-literal
|
numeric-literal = integer-literal
|
||||||
/ field-literal
|
/ field-literal
|
||||||
/ product-group-literal
|
/ product-group-literal
|
||||||
|
|
||||||
|
atomic-literal = numeric-literal
|
||||||
/ boolean-literal
|
/ boolean-literal
|
||||||
/ address-literal
|
/ address-literal
|
||||||
/ character-literal
|
/ character-literal
|
||||||
|
Loading…
Reference in New Issue
Block a user