This commit is contained in:
2025-09-27 15:16:26 +02:00
parent 5af7c5276a
commit 3b1bb9d531
63 changed files with 1087 additions and 407 deletions

View File

@ -13,8 +13,7 @@ typedef struct {
typedef struct Token {
struct Token *next;
const char *ptr;
size_t len;
char *str;
enum {
TOK_STRING,
@ -26,13 +25,10 @@ typedef struct Token {
} Token;
typedef struct {
const char *str;
size_t len;
size_t pos;
char *str;
Token *tokens;
} Tokenizer;
bool interp_runstring(const char *string, InterpResult **res, bool logcmds, bool interactive);
bool interp_runstring(char *string, InterpResult **res, bool logcmds, bool interactive);
#endif // TB_INTERP_H_