aboutsummaryrefslogtreecommitdiff
path: root/include/parser/shared.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-05 14:45:12 +0000
committer_ov4 <ov4@ov4.org>2026-09-05 14:45:12 +0000
commit16a3288af9d214d11feb0c1c3bdb7ecaca2bfdd0 (patch)
treebb854811bae8b91b268d250f26b60535c95144f1 /include/parser/shared.h
parent873d06fb044687cd0707c9c24defe4d2d4fcd5c6 (diff)
refactor very simple tokenizer
Diffstat (limited to 'include/parser/shared.h')
-rw-r--r--include/parser/shared.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/parser/shared.h b/include/parser/shared.h
new file mode 100644
index 0000000..01f1483
--- /dev/null
+++ b/include/parser/shared.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <string>
+#include <vector>
+
+#include "parser/enum_type.h"
+
+namespace ov4
+{
+
+class T_ast;
+class T_token;
+
+inline size_t ast_index = 0;
+
+inline std::vector<T_ast> ast;
+inline std::vector<T_token> token;
+
+}