mirror of
https://github.com/AleoHQ/leo.git
synced 2024-09-21 12:07:56 +03:00
[ABNF] Add numerals to tokens.
In the currently restricted version of Leo, this is necessary for the numerals in affine group literals to be tokens. No change necessary to the lexer/parser, which already handle this properly.
This commit is contained in:
parent
5353b33c1b
commit
c0ffe443c1
@ -401,10 +401,11 @@ symbol = "!" / "&&" / "||"
|
|||||||
token = keyword
|
token = keyword
|
||||||
/ identifier
|
/ identifier
|
||||||
/ atomic-literal
|
/ atomic-literal
|
||||||
|
/ numeral
|
||||||
/ symbol
|
/ symbol
|
||||||
```
|
```
|
||||||
|
|
||||||
Go to: _[atomic-literal](#user-content-atomic-literal), [identifier](#user-content-identifier), [keyword](#user-content-keyword), [symbol](#user-content-symbol)_;
|
Go to: _[atomic-literal](#user-content-atomic-literal), [identifier](#user-content-identifier), [keyword](#user-content-keyword), [numeral](#user-content-numeral), [symbol](#user-content-symbol)_;
|
||||||
|
|
||||||
|
|
||||||
<a name="lexeme"></a>
|
<a name="lexeme"></a>
|
||||||
|
@ -181,6 +181,7 @@ symbol = "!" / "&&" / "||"
|
|||||||
token = keyword
|
token = keyword
|
||||||
/ identifier
|
/ identifier
|
||||||
/ atomic-literal
|
/ atomic-literal
|
||||||
|
/ numeral
|
||||||
/ symbol
|
/ symbol
|
||||||
|
|
||||||
lexeme = token / comment / whitespace
|
lexeme = token / comment / whitespace
|
||||||
|
Loading…
Reference in New Issue
Block a user