aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-19 18:31:17 +0800
committerChristian <c@ethdev.com>2015-01-08 04:44:17 +0800
commit400d68b81d97db506550dcd93e50dcd0aa1c37ac (patch)
tree83eaca83532eb45db1f74257c746e6348413c7f0 /Scanner.cpp
parentd35842d65e4f81aa22114a312cd84b5835bc2533 (diff)
downloaddexon-solidity-400d68b81d97db506550dcd93e50dcd0aa1c37ac.tar.gz
dexon-solidity-400d68b81d97db506550dcd93e50dcd0aa1c37ac.tar.zst
dexon-solidity-400d68b81d97db506550dcd93e50dcd0aa1c37ac.zip
Arbitrary precision integer constants.
Diffstat (limited to 'Scanner.cpp')
-rw-r--r--Scanner.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Scanner.cpp b/Scanner.cpp
index 6433b526..6e3d04bc 100644
--- a/Scanner.cpp
+++ b/Scanner.cpp
@@ -455,7 +455,7 @@ void Scanner::scanToken()
token = Token::ADD;
break;
case '-':
- // - -- -= Number
+ // - -- -=
advance();
if (m_char == '-')
{
@@ -464,8 +464,6 @@ void Scanner::scanToken()
}
else if (m_char == '=')
token = selectToken(Token::ASSIGN_SUB);
- else if (m_char == '.' || isDecimalDigit(m_char))
- token = scanNumber('-');
else
token = Token::SUB;
break;
@@ -650,8 +648,7 @@ Token::Value Scanner::scanNumber(char _charSeen)
}
else
{
- if (_charSeen == '-')
- addLiteralChar('-');
+ solAssert(_charSeen == 0, "");
// if the first character is '0' we must check for octals and hex
if (m_char == '0')
{