aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-08-27 14:42:19 +0100
committerGinger Bill <bill@gingerbill.org>2017-08-27 14:42:19 +0100
commit6707c8750e951ed6533ab3d4240314cf0bba7147 (patch)
tree81c3da56ac6f26fd5e51beb8e0433a5c0fbf563f /src/tokenizer.cpp
parente5502c13eef07b3cef9947c47b133555e33b8d85 (diff)
Import cycle checking
Diffstat (limited to 'src/tokenizer.cpp')
-rw-r--r--src/tokenizer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp
index cd55edac5..c4acc4c9a 100644
--- a/src/tokenizer.cpp
+++ b/src/tokenizer.cpp
@@ -149,6 +149,11 @@ struct TokenPos {
isize column;
};
+TokenPos token_pos(String file, isize line, isize column) {
+ TokenPos pos = {file, line, column};
+ return pos;
+}
+
i32 token_pos_cmp(TokenPos a, TokenPos b) {
if (a.line == b.line) {
if (a.column == b.column) {