Aria

A low-level systems programming language
git clone git://git.m21c.me/Aria.git
Log | Files | Refs | LICENSE

commit 6f7d8553fcacfa293447187c72d0780900dee3c3
parent d63479aedd94770553f2633a887df6e3960c5334
Author: m21c <ho*******@gmail.com>
Date:   Fri, 27 Jun 2025 21:24:01 +0200

func call without parenthesis

Diffstat:
Mcompiler.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/compiler.c b/compiler.c @@ -3651,6 +3651,16 @@ readatom(Source *source, int flags) } } + /* function call without parentheses */ + if (lhs->kind == ADECLREF + && lhs->u.declref->kind == DFUNCTION + && isatomnode(getkind(source))) { + lhs = tokennode(source, lhs); + lhs->kind = OCALL; + + lhs->rhs = exprlist(source, false, NULL); + source->lastis = savedis; /* @note is this correct? */ + } return lhs; }