From ed3258836d0f4e806352ce60bec65a1ea26c8987 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 4 Mar 2026 19:23:40 +0100 Subject: Construct funcalls properly --- oryxc/src/parser.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'oryxc') 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), })); })? }, -- cgit v1.2.3