aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-02-09 02:53:23 +0800
committerGitHub <noreply@github.com>2017-02-09 02:53:23 +0800
commit2ac766b18b0b24149697adfd3a3e966f6637c1c8 (patch)
tree9dc0c8255e107d477ba42e2dd8e9c16ff014b10b /docs
parentb0729d0e764122cce13943cbdd303ae1fb8c3f4e (diff)
parent1fc42d733df0d85eaf61495a53906ca65a9544be (diff)
downloaddexon-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.txt3
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 =