diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-03-04 19:23:40 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-03-04 19:23:40 +0100 |
| commit | ed3258836d0f4e806352ce60bec65a1ea26c8987 (patch) | |
| tree | b8c2ff2160567a49db96ac493adca5a0223329ef /oryxc/src/parser.rs | |
| parent | 85747946c426de7d988998541457e7ab8c6f29f4 (diff) | |
Construct funcalls properly
Diffstat (limited to 'oryxc/src/parser.rs')
| -rw-r--r-- | oryxc/src/parser.rs | 5 |
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), })); })? }, |