summaryrefslogtreecommitdiff
path: root/lex.h
diff options
context:
space:
mode:
authorÁkos Kőrösi <korakos99@gmail.com>2026-05-12 10:23:03 +0200
committerÁkos Kőrösi <korakos99@gmail.com>2026-05-12 10:23:03 +0200
commit52f705e81ce2d7a42c6c14fca92c5e2a4326c988 (patch)
tree90c7ba2324f4d2e531a45cdefd827ab1177803ba /lex.h
parentf0016d8946958d029706b39ecd233044d3cf93f5 (diff)
wire up a basic test main with the lexing
Diffstat (limited to 'lex.h')
-rw-r--r--lex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lex.h b/lex.h
index b27c03e..77b6838 100644
--- a/lex.h
+++ b/lex.h
@@ -76,4 +76,12 @@ DECLARE_MAYBE(Chunk);
DECLARE_VEC(ExpansionRegion, ExpansionRegionVec)
+
+typedef struct {
+ TokenVec top_tokens;
+ ExpansionRegionVec reg_arena;
+} LexResult;
+
+
+LexResult lex(char* input);
#endif