diff options
author | chriseth <chris@ethereum.org> | 2017-02-09 02:53:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-09 02:53:23 +0800 |
commit | 2ac766b18b0b24149697adfd3a3e966f6637c1c8 (patch) | |
tree | 9dc0c8255e107d477ba42e2dd8e9c16ff014b10b /docs | |
parent | b0729d0e764122cce13943cbdd303ae1fb8c3f4e (diff) | |
parent | 1fc42d733df0d85eaf61495a53906ca65a9544be (diff) | |
download | dexon-solidity-2ac766b18b0b24149697adfd3a3e966f6637c1c8.tar.gz dexon-solidity-2ac766b18b0b24149697adfd3a3e966f6637c1c8.tar.zst dexon-solidity-2ac766b18b0b24149697adfd3a3e966f6637c1c8.zip |
Merge pull request #1643 from federicobond/patch-1
grammar.txt: Add rule for tuple destructuring
Diffstat (limited to 'docs')
-rw-r--r-- | docs/grammar.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt index a9f328c0..dc188572 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -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 = |