aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorRJ Catalano <catalanor0220@gmail.com>2015-12-16 01:00:35 +0800
committerRJ Catalano <catalanor0220@gmail.com>2015-12-16 01:00:35 +0800
commit84241804dc970ce12bb86602afb0505c658df197 (patch)
treea23c70e416bb7b099fa762b02942f32eee18c5dc /libsolidity
parent42c43394040e68c3bb32ed1e73992e096e5d10d2 (diff)
parent574e48b0b51bbf890702a0c0fbae799473945bdb (diff)
downloaddexon-solidity-84241804dc970ce12bb86602afb0505c658df197.tar.gz
dexon-solidity-84241804dc970ce12bb86602afb0505c658df197.tar.zst
dexon-solidity-84241804dc970ce12bb86602afb0505c658df197.zip
updated attempt...still a bit more work to do but here's what's current
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/AST.h5
-rw-r--r--libsolidity/parsing/Parser.cpp1
2 files changed, 4 insertions, 2 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h
index 75cb9ab2..b267b6a4 100644
--- a/libsolidity/ast/AST.h
+++ b/libsolidity/ast/AST.h
@@ -1127,9 +1127,10 @@ private:
ASTPointer<Expression> m_rightHandSide;
};
+
/**
- * Tuple or just parenthesized expression.
- * Examples: (1, 2), (x,), (x), ()
+ * Tuple, parenthesized expression, or bracketed expression.
+ * Examples: (1, 2), (x,), (x), (), [1, 2],
* Individual components might be empty shared pointers (as in the second example).
* The respective types in lvalue context are: 2-tuple, 2-tuple (with wildcard), type of x, 0-tuple
* Not in lvalue context: 2-tuple, _1_-tuple, type of x, 0-tuple.
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index 5a3ed56e..ba92d2aa 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -1058,6 +1058,7 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
expectToken(oppositeToken);
return nodeFactory.createNode<TupleExpression>(components);
}
+
default:
if (Token::isElementaryTypeName(token))
{