feat: enhance compiler

- Add comments and test for it
- Add semicolon as required end of some expressions
- Add new arguments parser
- Add multi-file compilation
- Add colors in output
This commit is contained in:
samsonium
2026-10-15 17:20:43 +03:00
parent 1035b9193c
commit 69b2253c34
22 changed files with 739 additions and 327 deletions
+2 -1
View File
@@ -61,11 +61,12 @@ typedef struct
bool store_value;
void *value;
uint16_t value_sz;
char *filename;
} fzl_token_t;
// Allocate new token
fzl_token_t *fzl_mktoken(const fzl_toktype_t type, size_t line, size_t col,
void *value, size_t value_sz);
void *value, size_t value_sz, char *filename);
// Free token and its contents
void fzl_freetoken(fzl_token_t *token);