From afe13e92cf46e0bd4bf493bd0896f9fc0152ff37 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Sun, 24 Sep 2023 12:51:35 +0200 Subject: Variable without index are now evaluated as well --- lib/qsp_expression.mly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/qsp_expression.mly') diff --git a/lib/qsp_expression.mly b/lib/qsp_expression.mly index d1680f3..3d758c4 100644 --- a/lib/qsp_expression.mly +++ b/lib/qsp_expression.mly @@ -81,7 +81,7 @@ unary_operator: let index = match brackets with | None -> (* No declaration, consider index at 0 *) - Some (Analyzer.Expression.integer dummy_pos "0") + None | Some other -> other in Analyzer.Expression.{ pos = $loc ; name ; index } } -- cgit v1.2.3