mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-22 22:44:47 +03:00
[ABNF] Also remove rule for expression statements.
Expression statements were removed from the rule for statements, but the rule for expression statements itself had not been removed. This commit fixes that.
This commit is contained in:
parent
a1c0932f3e
commit
52d820ad7b
@ -274,8 +274,6 @@ statement = return-statement
|
||||
|
||||
block = "{" *statement "}"
|
||||
|
||||
expression-statement = expression ";"
|
||||
|
||||
return-statement = %s"return" expression ";"
|
||||
|
||||
variable-declaration = %s"let" identifier ":" type "=" expression ";"
|
||||
|
Loading…
Reference in New Issue
Block a user