aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChimrod <>2023-09-24 12:51:35 +0200
committerChimrod <>2023-09-24 12:51:35 +0200
commitafe13e92cf46e0bd4bf493bd0896f9fc0152ff37 (patch)
tree109933e3e527bd3e5d90b8b8572fe22967067351 /lib
parente21c752ccd0d3d73921beddb671aa48429c2dd90 (diff)
Variable without index are now evaluated as well
Diffstat (limited to 'lib')
-rw-r--r--lib/parser.mly5
-rw-r--r--lib/qsp_expression.mly2
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/parser.mly b/lib/parser.mly
index c506e9c..35aebaf 100644
--- a/lib/parser.mly
+++ b/lib/parser.mly
@@ -1,11 +1,6 @@
%{
-
-
module T = Qsp_syntax.T
-
- let dummy_pos = (Lexing.dummy_pos, Lexing.dummy_pos)
-
%}
%parameter<Analyzer: Qsp_syntax.S.Analyzer>
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 }
}