summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-04 19:23:40 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-04 19:23:40 +0100
commited3258836d0f4e806352ce60bec65a1ea26c8987 (patch)
treeb8c2ff2160567a49db96ac493adca5a0223329ef
parent85747946c426de7d988998541457e7ab8c6f29f4 (diff)
Construct funcalls properly
-rw-r--r--oryxc/src/parser.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/oryxc/src/parser.rs b/oryxc/src/parser.rs
index 54526bc..45999aa 100644
--- a/oryxc/src/parser.rs
+++ b/oryxc/src/parser.rs
@@ -890,15 +890,14 @@ impl<'a> Parser<'a> {
};
let nexprs = p.scratch.len() - exprbeg;
let extra_data_beg = p.extra_data.len();
+ p.extra_data.push(nexprs);
for x in &p.scratch[exprbeg..] {
p.extra_data.push(*x);
}
- /* FIXME: Missing LHS, and doesn’t conform to the
- * description at the definition of AstType */
return Ok(p.new_node(AstNode {
kind: AstType::FunCall,
tok,
- sub: SubNodes(extra_data_beg as u32, nexprs as u32),
+ sub: SubNodes(lhs, extra_data_beg),
}));
})?
},