From d71945e7233fc3548b204bebb8e31dd76df67133 Mon Sep 17 00:00:00 2001 From: Kenneth Trecy Tobias <33564322+KennethTrecy@users.noreply.github.com> Date: Mon, 12 Aug 2019 16:54:05 +0800 Subject: [PATCH] Enable dynamic QAST Tree building --- src/HLL/Actions.nqp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/HLL/Actions.nqp b/src/HLL/Actions.nqp index 6eb56515cc..91c57956a2 100644 --- a/src/HLL/Actions.nqp +++ b/src/HLL/Actions.nqp @@ -134,8 +134,9 @@ class HLL::Actions { } if $key eq 'POSTFIX' { $ast.unshift($/[0].ast); - } - else { + } elsif nqp::isinvokable($ast) { + $ast := $ast($/.list); + } else { for $/.list { if nqp::defined($_.ast) { $ast.push($_.ast); } } } make $ast;