Merge pull request #1643 from federicobond/patch-1

grammar.txt: Add rule for tuple destructuring
This commit is contained in:
chriseth 2017-02-08 19:53:23 +01:00 committed by GitHub
commit 2ac766b18b

View File

@ -68,7 +68,8 @@ Continue = 'continue'
Break = 'break'
Return = 'return' Expression?
Throw = 'throw'
VariableDefinition = VariableDeclaration ( '=' Expression )?
VariableDefinition = ('var' IdentifierList | VariableDeclaration) ( '=' Expression )?
IdentifierList = '(' ( Identifier? ',' )* Identifier? ')'
// Precedence by order (see github.com/ethereum/solidity/pull/732)
Expression =