mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3204 from frangio/grammar-incomplete-tuples
Make tuple components optional in documented grammar
This commit is contained in:
commit
f22ac8fc96
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user