From 9a277eb1e3ee2003ddcea68c99b906da084cc7e1 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 8 Dec 2022 21:31:04 +0100 Subject: [PATCH] fix pos --- parser.mly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.mly b/parser.mly index 5f5f7b1..1fbcaf1 100644 --- a/parser.mly +++ b/parser.mly @@ -32,7 +32,7 @@ instr: ; Assign { var = v; expr = e; pos = $startpos(v) } ] } | v = Lvar; Lassign; e = expr - { [ Assign { var = v; expr = e; pos = $startpos(v) } ] + { [ Assign { var = v; expr = e; pos = $startpos($2) } ] } expr: