Implement new features #6
@ -47,7 +47,9 @@ pub fn parse(stack: &mut Stack, file_content: &str) {
|
||||
}
|
||||
}
|
||||
|
||||
let inst = Instruction { name, arg, data };
|
||||
stack.program.push(inst);
|
||||
if name != "" {
|
||||
|
||||
let inst = Instruction { name, arg, data };
|
||||
stack.program.push(inst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user
для чего это?
p.s.: можно использовать
name.is_empty()