diff options
author | chriseth <chris@ethereum.org> | 2018-05-09 17:06:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-09 17:06:23 +0800 |
commit | 54aa10ce367297a4b4f5ae3513dbe8c715e9fb88 (patch) | |
tree | ce5ad2cf32e2118ae92191ec648a1f522d1255c0 /libsolidity/inlineasm/AsmParser.cpp | |
parent | c79351efb05be08f3f1797c8cf6ff50988b74763 (diff) | |
parent | 840ed1e88a8d70bdbc541a1330654cb1e730e298 (diff) | |
download | dexon-solidity-54aa10ce367297a4b4f5ae3513dbe8c715e9fb88.tar dexon-solidity-54aa10ce367297a4b4f5ae3513dbe8c715e9fb88.tar.gz dexon-solidity-54aa10ce367297a4b4f5ae3513dbe8c715e9fb88.tar.bz2 dexon-solidity-54aa10ce367297a4b4f5ae3513dbe8c715e9fb88.tar.lz dexon-solidity-54aa10ce367297a4b4f5ae3513dbe8c715e9fb88.tar.xz dexon-solidity-54aa10ce367297a4b4f5ae3513dbe8c715e9fb88.tar.zst dexon-solidity-54aa10ce367297a4b4f5ae3513dbe8c715e9fb88.zip |
Merge pull request #4054 from ethereum/token-names
Improve parser error messages
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index 7f618e07..d3b0808b 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -276,7 +276,7 @@ assembly::Expression Parser::parseExpression() int args = instructionInfo(instr.instruction).args; if (args > 0 && currentToken() != Token::LParen) fatalParserError(string( - "Expected token \"(\" (\"" + + "Expected '(' (instruction \"" + instructionNames().at(instr.instruction) + "\" expects " + boost::lexical_cast<string>(args) + @@ -504,7 +504,7 @@ assembly::Expression Parser::parseCall(Parser::ElementaryOperation&& _initialOp) /// check for premature closing parentheses if (currentToken() == Token::RParen) fatalParserError(string( - "Expected expression (\"" + + "Expected expression (instruction \"" + instructionNames().at(instr) + "\" expects " + boost::lexical_cast<string>(args) + @@ -516,7 +516,7 @@ assembly::Expression Parser::parseCall(Parser::ElementaryOperation&& _initialOp) { if (currentToken() != Token::Comma) fatalParserError(string( - "Expected comma (\"" + + "Expected ',' (instruction \"" + instructionNames().at(instr) + "\" expects " + boost::lexical_cast<string>(args) + @@ -529,7 +529,7 @@ assembly::Expression Parser::parseCall(Parser::ElementaryOperation&& _initialOp) ret.location.end = endPosition(); if (currentToken() == Token::Comma) fatalParserError(string( - "Expected ')' (\"" + + "Expected ')' (instruction \"" + instructionNames().at(instr) + "\" expects " + boost::lexical_cast<string>(args) + |