diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-13 11:11:18 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-13 11:11:18 -0400 |
commit | df4a225ccf79dd9f5fa3faef4fd68ae87471f0ca (patch) | |
tree | 44629775a57e229024f56d087ab5d1aebed978d3 /masm/parse.h | |
parent | dont upload those :p (diff) | |
download | mips-df4a225ccf79dd9f5fa3faef4fd68ae87471f0ca.tar.gz mips-df4a225ccf79dd9f5fa3faef4fd68ae87471f0ca.tar.bz2 mips-df4a225ccf79dd9f5fa3faef4fd68ae87471f0ca.zip |
better
Diffstat (limited to '')
-rw-r--r-- | masm/parse.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/masm/parse.h b/masm/parse.h index 3052d51..9e0e928 100644 --- a/masm/parse.h +++ b/masm/parse.h @@ -37,14 +37,9 @@ struct mips_directive { }; }; -enum reference_type { - REF_NONE, - REF_OFFESET, - REF_TARGET, -}; - struct reference { - enum reference_type type; + // ELF relocate type + unsigned char type; /// symbol name char name[MAX_LEX_LENGTH]; @@ -91,7 +86,10 @@ struct expr { }; struct parser { + // the lexer + // *weak* ponter, we do not own this struct lexer *lexer; + // the last token peeked struct token peek; }; |