202608280132

This commit is contained in:
starcells committed 2026-08-28 01:32:11 +08:00
1 parent 5b53bc91be
commit 37e503fa8a
1 file changed
+1 -3
+1 -3
View File
@@ -378,8 +378,7 @@ r8asm::ast_node r8asm::parse(const token_stream &stream) {
for (auto token_it = it->tokens.begin() + 1; // where argument begins
token_it < it->tokens.end(); token_it++)
buffer.tokens.push_back(*token_it);
tmp_codeblock_stream.lines = {buffer};
auto args = parse(tmp_codeblock_stream).children;
auto args = parse_args(buffer).children;
for (const auto &arg_it : args)
to_return.children.back().children.push_back(
arg_it); // though all string args are treated as VARIABLE, I guess
@@ -452,7 +451,6 @@ r8asm::ast_node r8asm::parse_args(const token_line &line) {
buffer.pop_front();
}
}
buffer.push_back(*it);
}
if (!buffer.empty()) {
raw_args.push_back({line.number, {}});