mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
Merge pull request #1644 from AleoHQ/bug/1633-remove-console-debug-grammar
fix console debug grammar discrep
This commit is contained in:
commit
a240cf451d
@ -1598,7 +1598,7 @@ The latter takes either no argument,
|
||||
or a format string followed by expressions,
|
||||
whose number must match the number of containers `{}` in the format string.
|
||||
Note that the console function names are identifiers, not keywords.
|
||||
There are three kinds of print commands.
|
||||
There are two kinds of print commands.
|
||||
|
||||
<a name="console-statement"></a>
|
||||
```abnf
|
||||
@ -1627,7 +1627,7 @@ Go to: _[expression](#user-content-expression)_;
|
||||
|
||||
<a name="print-function"></a>
|
||||
```abnf
|
||||
print-function = %s"debug" / %s"error" / %s"log"
|
||||
print-function = %s"error" / %s"log"
|
||||
```
|
||||
|
||||
<a name="print-arguments"></a>
|
||||
|
@ -962,7 +962,7 @@ assignment-statement = expression assignment-operator expression ";"
|
||||
; or a format string followed by expressions,
|
||||
; whose number must match the number of containers `{}` in the format string.
|
||||
; Note that the console function names are identifiers, not keywords.
|
||||
; There are three kinds of print commands.
|
||||
; There are two kinds of print commands.
|
||||
|
||||
console-statement = %s"console" "." console-call ";"
|
||||
|
||||
@ -971,7 +971,7 @@ console-call = assert-call
|
||||
|
||||
assert-call = %s"assert" "(" expression ")"
|
||||
|
||||
print-function = %s"debug" / %s"error" / %s"log"
|
||||
print-function = %s"error" / %s"log"
|
||||
|
||||
print-arguments = "(" string-literal *( "," expression ) ")"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user