feat: remove stb_c_lexer

This commit is contained in:
2026-05-22 00:24:32 +02:00
parent 37f32fa280
commit 3736df7249
8 changed files with 717 additions and 1233 deletions

View File

@@ -9,7 +9,7 @@ Header-only libraries are also a must imo, so let's try to implement meta progra
## Compilation time
`cmeta.h` contains the code to parse structs, lexing is handled by `stb_c_lexer` (for now).
`cmeta.h` contains the code to lex the source code and parse structs.
The `bool process_file(const char *file_path)` function calls `gcc -E <file_path>` (so we handle macros etc), then parses the result. It then generates all `Struct_Info`s in a special place in the header, delimited by two `// AUTO GENERATED CODE //`.
If anything has failed, nothing will be generated between the two comments, so cmeta remains intact.