Cleaned up .db string handling

This commit is contained in:
2022-03-19 13:07:27 -05:00
parent 36dc5d5ed4
commit 987df5fb45
4 changed files with 16 additions and 17 deletions
+1 -1
View File
@@ -22,7 +22,6 @@ pub enum Node<'a> {
RelativeLabel(&'a str),
AbsoluteOffset(i32),
RelativeOffset(i32),
String(String), // TODO: this shouldn't exist
Expr(Box<Node<'a>>, Vec<(Operator, Node<'a>)>),
}
@@ -39,6 +38,7 @@ impl<'a> Display for Label<'a> {
pub enum VASMLine<'a> {
Instruction(Option<Label<'a>>, Opcode, Option<Node<'a>>),
Db(Option<Label<'a>>, Node<'a>),
StringDb(Option<Label<'a>>, String),
Org(Option<Label<'a>>, Node<'a>),
Equ(Label<'a>, Node<'a>),
LabelDef(Label<'a>),