mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update grammar to represent optionality in catch clauses parameter list
This commit is contained in:
parent
24bf11a2bb
commit
57fcab80fc
@ -72,7 +72,7 @@ Statement = IfStatement | TryStatement | WhileStatement | ForStatement | Block |
|
||||
ExpressionStatement = Expression
|
||||
IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )?
|
||||
TryStatement = 'try' Expression ( 'returns' ParameterList )? Block CatchClause+
|
||||
CatchClause = 'catch' Identifier? ParameterList Block
|
||||
CatchClause = 'catch' ( Identifier? ParameterList )? Block
|
||||
WhileStatement = 'while' '(' Expression ')' Statement
|
||||
PlaceholderStatement = '_'
|
||||
SimpleStatement = VariableDefinition | ExpressionStatement
|
||||
|
Loading…
Reference in New Issue
Block a user