aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorFrancisco Giordano <frangio.1@gmail.com>2017-11-15 03:30:41 +0800
committerFrancisco Giordano <frangio.1@gmail.com>2017-11-15 03:35:50 +0800
commit0b3ef5bbc73fd942779a17e484adda9879f76e41 (patch)
tree3838f14d19662cf53b5cf169d5ac7bd6311728a1 /docs
parent060b2c2b23da99836eb54dc30eb7d870016bcb7a (diff)
downloaddexon-solidity-0b3ef5bbc73fd942779a17e484adda9879f76e41.tar.gz
dexon-solidity-0b3ef5bbc73fd942779a17e484adda9879f76e41.tar.zst
dexon-solidity-0b3ef5bbc73fd942779a17e484adda9879f76e41.zip
Make tuple components optional in documented grammar
Diffstat (limited to 'docs')
-rw-r--r--docs/grammar.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index 72364b7c..7a60aa00 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]+
-TupleExpression = '(' ( Expression ( ',' Expression )* )? ')'
- | '[' ( Expression ( ',' Expression )* )? ']'
+TupleExpression = '(' ( Expression? ( ',' Expression? )* )? ')'
+ | '[' ( Expression ( ',' Expression )* )? ']'
ElementaryTypeNameExpression = ElementaryTypeName