about summary refs log tree commit diff
path: root/boot/lex.c
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-05-18 19:43:19 +0200
committerMel <mel@rnrd.eu>2025-05-18 19:43:19 +0200
commit8c8d65f026121b4d75a31bff8a91c3fbf969fca5 (patch)
tree64ba811523b45c02c849c1655e83e54aba968ec5 /boot/lex.c
parent7a7446a6dfdfcf5e02358fdb34c193eb67068b93 (diff)
downloadcatskill-8c8d65f026121b4d75a31bff8a91c3fbf969fca5.tar.zst
catskill-8c8d65f026121b4d75a31bff8a91c3fbf969fca5.zip
Define basic syntax tree (mostly expressions), with simple debug printing
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/lex.c')
-rw-r--r--boot/lex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/boot/lex.c b/boot/lex.c
index db0173e..9a94c55 100644
--- a/boot/lex.c
+++ b/boot/lex.c
@@ -219,6 +219,7 @@ token_new(enum Token_Kind kind, struct Span span, struct Cursor location, union
         .kind = kind,
         .span = span,
         .value = value,
+        .location = location,
     };
 }