aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-08 00:25:04 +0800
committerChristian <c@ethdev.com>2014-10-08 19:49:34 +0800
commit56e9cc8db71f8af949123e13e6a97cc056cf766d (patch)
tree6fc043aaa6b9562ab0d1de8f2aa51e6d99c8ab6b /Scanner.h
parentef59373871528ac72c447e5f014aa18a1f3776e5 (diff)
downloaddexon-solidity-56e9cc8db71f8af949123e13e6a97cc056cf766d.tar.gz
dexon-solidity-56e9cc8db71f8af949123e13e6a97cc056cf766d.tar.zst
dexon-solidity-56e9cc8db71f8af949123e13e6a97cc056cf766d.zip
Solidity parser, can not parse much yet.
Diffstat (limited to 'Scanner.h')
-rw-r--r--Scanner.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/Scanner.h b/Scanner.h
index 3cf52fbc..d2dcad29 100644
--- a/Scanner.h
+++ b/Scanner.h
@@ -47,6 +47,7 @@
#include <libdevcore/Common.h>
#include <libdevcore/Log.h>
#include <libdevcore/CommonData.h>
+#include <libsolidity/BaseTypes.h>
#include <libsolidity/Token.h>
namespace dev {
@@ -111,21 +112,6 @@ public:
bool complete_;
};
- // Representation of an interval of source positions.
- struct Location {
- Location(int b, int e) : beg_pos(b), end_pos(e) { }
- Location() : beg_pos(0), end_pos(0) { }
-
- bool IsValid() const {
- return beg_pos >= 0 && end_pos >= beg_pos;
- }
-
- static Location invalid() { return Location(-1, -1); }
-
- int beg_pos;
- int end_pos;
- };
-
explicit Scanner(const CharStream& _source);
// Resets the scanner as if newly constructed with _input as input.
@@ -163,8 +149,6 @@ private:
std::string literal;
};
- static const int kCharacterLookaheadBufferSize = 1;
-
// Literal buffer support
inline void startNewLiteral() {
m_next_token.literal.clear();