From 61b2e269d426bad8f543fdbb94adf8f99f944079 Mon Sep 17 00:00:00 2001 From: Silas Wrinker Date: Tue, 23 Jul 2024 17:38:57 -0400 Subject: [PATCH] Update parse.cpp --- src/crate/parse.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/crate/parse.cpp b/src/crate/parse.cpp index 0b8810d..4367c44 100644 --- a/src/crate/parse.cpp +++ b/src/crate/parse.cpp @@ -144,18 +144,21 @@ Program parse(vector tlist) { cur.tokens = load_var; cur.ntype = IMPOCT; ultimate.push_back(cur); + load_var.clear(); load_type = ""; } else if (load_type == "packid") { load_var.push_back(tok); cur.tokens = load_var; cur.ntype = PACKID; ultimate.push_back(cur); + load_var.clear(); load_type = ""; } else if (load_type == "packct") { load_var.push_back(tok); cur.tokens = load_var; cur.ntype = PACKCT; ultimate.push_back(cur); + load_var.clear(); load_type = ""; } else if (load_type == "import" | load_type == "pack") { load_var.clear();