aboutsummaryrefslogtreecommitdiff
path: root/lib/qparser/qsp_expression.mly
diff options
context:
space:
mode:
authorChimrod <>2024-06-20 20:25:19 +0200
committerChimrod <>2024-06-20 20:25:19 +0200
commit976f80ed226e53625cd807539b9336f52f6eb091 (patch)
treedc0d199396c4f5571dffd83e693de2979046d4db /lib/qparser/qsp_expression.mly
parent70c94d9465496340b34a85d0d6c7fc1fa5fdf949 (diff)
Removed the need for () after rnd
Diffstat (limited to 'lib/qparser/qsp_expression.mly')
-rw-r--r--lib/qparser/qsp_expression.mly4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/qparser/qsp_expression.mly b/lib/qparser/qsp_expression.mly
index 1e0988f..c6b7564 100644
--- a/lib/qparser/qsp_expression.mly
+++ b/lib/qparser/qsp_expression.mly
@@ -44,6 +44,10 @@
{
(Analyzer.Expression.function_ $loc k arg)
}
+ | k = FUNCTION_NOARGS
+ {
+ (Analyzer.Expression.function_ $loc k [])
+ }
literal:
| v = LITERAL { Qsp_syntax.T.Text v }
| e = delimited(ENTER_EMBED, expression, LEAVE_EMBED)