Add identifier interning and keyword lexing

This commit is contained in:
Krzosa Karol
2026-05-23 11:06:54 +02:00
parent 0058355611
commit fc04ee5c3e
4 changed files with 160 additions and 36 deletions

3
base.c
View File

@@ -1,4 +1,7 @@
#define panicf(...) base_panicf(__FILE__, __LINE__, __VA_ARGS__)
#define len(x) (sizeof((x))/sizeof((x)[0]))
#define ilen(x) ((int)len(x))
_Noreturn
void base_panicf(char *file, int line, const char *fmt, ...) {