aboutsummaryrefslogtreecommitdiff
path: root/lib/qparser/qsp_expression.mly
diff options
context:
space:
mode:
authorChimrod <>2023-10-28 22:17:24 +0200
committerChimrod <>2023-11-02 11:06:12 +0100
commit77ae152ece4efbf8dde983c03bd995c982522bfd (patch)
treeb6427477b66042f766e58148441166b83984ddbb /lib/qparser/qsp_expression.mly
parentdd060261e35fcb8a57f03b01dbe84ab772a2a199 (diff)
Updated the interface
Diffstat (limited to 'lib/qparser/qsp_expression.mly')
-rw-r--r--lib/qparser/qsp_expression.mly6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/qparser/qsp_expression.mly b/lib/qparser/qsp_expression.mly
index b470a88..9375701 100644
--- a/lib/qparser/qsp_expression.mly
+++ b/lib/qparser/qsp_expression.mly
@@ -34,7 +34,7 @@
op = binary_operator
expr2 = expression
{ Analyzer.Expression.boperator $loc op expr1 expr2 }
- | v = delimited(TEXT_MARKER, LITERAL, TEXT_MARKER)
+ | v = delimited(TEXT_MARKER, literal*, TEXT_MARKER)
{ Analyzer.Expression.literal $loc v }
| i = INTEGER { Analyzer.Expression.integer $loc i }
| v = variable { Analyzer.Expression.ident v }
@@ -44,6 +44,10 @@
{
(Analyzer.Expression.function_ $loc k arg)
}
+literal:
+ | v = LITERAL { Qsp_syntax.T.Text v }
+ | e = delimited(ENTER_EMBED, expression*, LEAVE_EMBED)
+ { Qsp_syntax.T.Expression e }
unary_operator:
| OBJ