diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-23 15:25:46 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-01-23 15:25:46 +0100 |
commit | 6c1007fc979da229ba2b9794fcb20a29e2edebc3 (patch) | |
tree | 3cb59f1063bb8ee019c0d701d4b2a2598f6bae74 /src/core/Tokenizer.hpp | |
parent | a7e40c1f1572b05e9608e0ed43ac54c1f7e7d84b (diff) |
Addapted Tokenizer to new SourceLocation
Diffstat (limited to 'src/core/Tokenizer.hpp')
-rw-r--r-- | src/core/Tokenizer.hpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/core/Tokenizer.hpp b/src/core/Tokenizer.hpp index 2b03e17..50e458c 100644 --- a/src/core/Tokenizer.hpp +++ b/src/core/Tokenizer.hpp @@ -121,19 +121,12 @@ static const int TOKEN_TEXT = -2; struct Token { int tokenId; std::string content; - int startColumn; - int startLine; - int endColumn; - int endLine; + SourceLocation location; - Token(int tokenId, std::string content, int startColumn, int startLine, - int endColumn, int endLine) + Token(int tokenId, std::string content, SourceLocation location) : tokenId(tokenId), content(content), - startColumn(startColumn), - startLine(startLine), - endColumn(endColumn), - endLine(endLine) + location(location) { } |