feat: remove stb_c_lexer
This commit is contained in:
2
DOCS.md
2
DOCS.md
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user