From b42d582badd18a1992d370f2eae49365357c61c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Tue, 18 Jun 2024 04:00:53 +0500 Subject: [PATCH] Fix a compatability issue. --- src/parse.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/parse.rs b/src/parse.rs index 075fff7..6617ce3 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -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); + } } }