diff options
| author | Chloe M. <chloe@mirocom.org> | 2026-05-23 10:53:41 +0000 |
|---|---|---|
| committer | Chloe M. <chloe@mirocom.org> | 2026-05-23 10:53:41 +0000 |
| commit | 07b0a3b2583e7b17ef477c1e57a6c35a60711847 (patch) | |
| tree | aeb6f1edbbfa2ff6bc8d5c7968c18de5e5b1cb79 /include | |
| parent | d5f1f2a22fc1c35e93e1dfde58d08e2b3827192e (diff) | |
lexer: Add scanning of identifiers
Signed-off-by: Chloe M. <chloe@mirocom.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/cescal/state.h | 2 | ||||
| -rw-r--r-- | include/cescal/token.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/cescal/state.h b/include/cescal/state.h index 566b5a2..3c1ad86 100644 --- a/include/cescal/state.h +++ b/include/cescal/state.h @@ -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; }; /* diff --git a/include/cescal/token.h b/include/cescal/token.h index 0be8ff0..990df77 100644 --- a/include/cescal/token.h +++ b/include/cescal/token.h @@ -32,6 +32,7 @@ struct token { tt_t type; union { char c; + char *s; }; }; |
