aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorRJ Catalano <catalanor0220@gmail.com>2015-12-17 03:17:41 +0800
committerRJ Catalano <catalanor0220@gmail.com>2015-12-17 03:17:41 +0800
commitde969945ea819b06a787e8aba47a2c5353a966ba (patch)
tree3ac8d8cf649b13f68a474b9e55c1954da774c98b /libsolidity
parent0ba24a5289eaaf1941c1e84e774f938353b9b94c (diff)
downloaddexon-solidity-de969945ea819b06a787e8aba47a2c5353a966ba.tar
dexon-solidity-de969945ea819b06a787e8aba47a2c5353a966ba.tar.gz
dexon-solidity-de969945ea819b06a787e8aba47a2c5353a966ba.tar.bz2
dexon-solidity-de969945ea819b06a787e8aba47a2c5353a966ba.tar.lz
dexon-solidity-de969945ea819b06a787e8aba47a2c5353a966ba.tar.xz
dexon-solidity-de969945ea819b06a787e8aba47a2c5353a966ba.tar.zst
dexon-solidity-de969945ea819b06a787e8aba47a2c5353a966ba.zip
Parsing is complete
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/parsing/Parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index e7391dff..3df3ac17 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -1043,9 +1043,9 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
m_scanner->next();
vector<ASTPointer<Expression>> components;
Token::Value oppositeToken = (token == Token::LParen ? Token::RParen : Token::RBrack);
- bool isArray = (token == Token::RBrace ? true : false);
+ bool isArray = (token == Token::LBrack ? true : false);
if (isArray && (m_scanner->currentToken() == Token::Comma))
- fatalParserError("Expected value in array cell after '[' .");
+ fatalParserError(std::string("Expected value in array cell after '[' ."));
if (m_scanner->currentToken() != oppositeToken)
while (true)
{
@@ -1057,7 +1057,7 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
break;
else if (m_scanner->currentToken() == Token::Comma)
if (isArray && (m_scanner->peekNextToken() == (Token::Comma || oppositeToken)))
- fatalParserError("Expected value in array cell after ',' .");
+ fatalParserError(std::string("Expected value in array cell after ',' ."));
m_scanner->next();
}
nodeFactory.markEndPosition();