aboutsummaryrefslogtreecommitdiffstats
path: root/docs/grammar.txt
diff options
context:
space:
mode:
authorFederico Bond <federicobond@gmail.com>2017-02-03 14:37:24 +0800
committerFederico Bond <federicobond@gmail.com>2017-02-09 01:00:30 +0800
commit1fc42d733df0d85eaf61495a53906ca65a9544be (patch)
tree7c81b596c27f76e22e09de5d7d5f6b99e2801e56 /docs/grammar.txt
parentab54cd100ec11e82f6e7c3405356fbc48fd2ed8c (diff)
downloaddexon-solidity-1fc42d733df0d85eaf61495a53906ca65a9544be.tar.gz
dexon-solidity-1fc42d733df0d85eaf61495a53906ca65a9544be.tar.zst
dexon-solidity-1fc42d733df0d85eaf61495a53906ca65a9544be.zip
grammar.txt: Add rule for tuple destructuring
Diffstat (limited to 'docs/grammar.txt')
-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 =