grammar.txt: Add rule for tuple destructuring

This commit is contained in:
Federico Bond 2017-02-03 03:37:24 -03:00
parent ab54cd100e
commit 1fc42d733d

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 =