From 92a7e5853c6caeec09122c05ddbc19ae1498a0d8 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 10 Sep 2024 18:23:46 -0400 Subject: joe --- masm/parse.h | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'masm/parse.h') diff --git a/masm/parse.h b/masm/parse.h index 5f37052..ea8f929 100644 --- a/masm/parse.h +++ b/masm/parse.h @@ -35,33 +35,6 @@ struct expr { }; }; -enum symbol_flag { - SYM_LOCAL, - SYM_GLOBAL, - SYM_EXTERNAL, -}; - -struct symbol { - char name[MAX_LEX_LENGTH]; - uint32_t index; - struct section *sec; - enum symbol_flag flag; - -}; - -struct symbol_table { - uint32_t count; - uint32_t len; - struct symbol *symbols; -}; - -int symtbl_init(struct symbol_table *sym_tbl); -void symtbl_free(struct symbol_table *sym_tbl); - -int symtbl_push(struct symbol_table *sym_tbl, struct symbol sym); -int symtbl_find(struct symbol_table *sym_tbl, struct symbol **sym, - const char name[MAX_LEX_LENGTH]); - enum section_entry_type { ENT_INS, ENT_WORD, @@ -143,9 +116,6 @@ struct parser { // sections struct section_table sec_tbl; - // symbols - struct symbol_table sym_tbl; - // references struct reference_table ref_tbl; -- cgit v1.2.3-freya