mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1643 from federicobond/patch-1
grammar.txt: Add rule for tuple destructuring
This commit is contained in:
commit
2ac766b18b
@ -68,7 +68,8 @@ Continue = 'continue'
|
|||||||
Break = 'break'
|
Break = 'break'
|
||||||
Return = 'return' Expression?
|
Return = 'return' Expression?
|
||||||
Throw = 'throw'
|
Throw = 'throw'
|
||||||
VariableDefinition = VariableDeclaration ( '=' Expression )?
|
VariableDefinition = ('var' IdentifierList | VariableDeclaration) ( '=' Expression )?
|
||||||
|
IdentifierList = '(' ( Identifier? ',' )* Identifier? ')'
|
||||||
|
|
||||||
// Precedence by order (see github.com/ethereum/solidity/pull/732)
|
// Precedence by order (see github.com/ethereum/solidity/pull/732)
|
||||||
Expression =
|
Expression =
|
||||||
|
Loading…
Reference in New Issue
Block a user