aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-11-22 10:22:38 +0800
committerGitHub <noreply@github.com>2017-11-22 10:22:38 +0800
commitf22ac8fc9647fbbef172f7c0a1f6799a5a0b38a8 (patch)
tree0b47d6b0d6b5b393e43b72ec866d11a7240d94a5
parent5c9e273d028bdcc65af50fdc1a2c5545e54739c3 (diff)
parent0b3ef5bbc73fd942779a17e484adda9879f76e41 (diff)
downloaddexon-solidity-f22ac8fc9647fbbef172f7c0a1f6799a5a0b38a8.tar.gz
dexon-solidity-f22ac8fc9647fbbef172f7c0a1f6799a5a0b38a8.tar.zst
dexon-solidity-f22ac8fc9647fbbef172f7c0a1f6799a5a0b38a8.zip
Merge pull request #3204 from frangio/grammar-incomplete-tuples
Make tuple components optional in documented grammar
-rw-r--r--docs/grammar.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index 94fc2e1c..ce3fd3ad 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -129,8 +129,8 @@ Identifier = [a-zA-Z_$] [a-zA-Z_$0-9]*
HexNumber = '0x' [0-9a-fA-F]+
DecimalNumber = [0-9]+ ( '.' [0-9]* )? ( [eE] [0-9]+ )?
-TupleExpression = '(' ( Expression ( ',' Expression )* )? ')'
- | '[' ( Expression ( ',' Expression )* )? ']'
+TupleExpression = '(' ( Expression? ( ',' Expression? )* )? ')'
+ | '[' ( Expression ( ',' Expression )* )? ']'
ElementaryTypeNameExpression = ElementaryTypeName