lexer: Add scanning of identifiers
Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -32,6 +32,7 @@ struct token {
|
||||
tt_t type;
|
||||
union {
|
||||
char c;
|
||||
char *s;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user