core: symbol: Add symbol management

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-05-23 21:50:43 -04:00
parent 5c3c78f561
commit 85c21a81bb
4 changed files with 229 additions and 0 deletions
+3
View File
@@ -10,6 +10,7 @@
#include "cescal/readbuf.h"
#include "cescal/tokbuf.h"
#include "cescal/ptrbox.h"
#include "cescal/symbol.h"
/*
* Compiler state machine
@@ -20,6 +21,7 @@
* @ptrbox: Global pointer box
* @lex_putback: Lexer putback buffer
* @pass: Current pass
* @symtab: Symbol table
*/
struct cescal_state {
int in_fd;
@@ -28,6 +30,7 @@ struct cescal_state {
struct ptrbox ptrbox;
char lex_putback;
uint8_t pass;
struct symbol_table symtab;
};
/*