mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-21 08:31:33 +03:00
[ABNF] Fix rule for console statements.
The ending semicolon was missing. This was found by @bendyarm, while investigating a discrepancy between the Leo parser in Rust and the Leo parser in ACL2: the latter was correctly following the erroneous grammar rule; it will be changed to be consistent with the fixed rule.
This commit is contained in:
parent
dcacb4b34a
commit
1aa9e4c852
@ -1613,7 +1613,7 @@ There are three kinds of print commands.
|
||||
|
||||
<a name="console-statement"></a>
|
||||
```abnf
|
||||
console-statement = %s"console" "." console-call
|
||||
console-statement = %s"console" "." console-call ";"
|
||||
```
|
||||
|
||||
Go to: _[console-call](#user-content-console-call)_;
|
||||
|
@ -972,7 +972,7 @@ assignment-statement = expression assignment-operator expression ";"
|
||||
; Note that the console function names are identifiers, not keywords.
|
||||
; There are three kinds of print commands.
|
||||
|
||||
console-statement = %s"console" "." console-call
|
||||
console-statement = %s"console" "." console-call ";"
|
||||
|
||||
console-call = assert-call
|
||||
/ print-call
|
||||
|
Loading…
Reference in New Issue
Block a user