lexer: Add scanning of identifiers

Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
2026-05-23 10:53:41 +00:00
parent d5f1f2a22f
commit 07b0a3b258
3 changed files with 87 additions and 0 deletions
+2
View File
@@ -18,12 +18,14 @@
* @rb: Read buffer
* @tokbuf: Token buffer
* @ptrbox: Global pointer box
* @lex_putback: Lexer putback buffer
*/
struct cescal_state {
int in_fd;
struct readbuf rb;
struct tokbuf tokbuf;
struct ptrbox ptrbox;
char lex_putback;
};
/*
+1
View File
@@ -32,6 +32,7 @@ struct token {
tt_t type;
union {
char c;
char *s;
};
};