Skip to content

Commit

Permalink
Update parse.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
silas-wr authored Jul 23, 2024
1 parent e1856bb commit 61b2e26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/crate/parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,21 @@ Program parse(vector<Token> 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();
Expand Down

0 comments on commit 61b2e26

Please sign in to comment.