This commit is contained in:
Mylloon 2022-12-09 17:04:33 +01:00
parent 72a928a840
commit 2d94d85562
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -32,9 +32,9 @@ instr:
{ [ Decl { name = v ; type_t = t ; pos = $startpos(t) } { [ Decl { name = v ; type_t = t ; pos = $startpos(t) }
; Assign { var = v ; expr = e ; pos = $startpos(v) } ] ; Assign { var = v ; expr = e ; pos = $startpos(v) } ]
} }
| v = Lvar ; Lassign ; e = expr | v = Lvar ; Lassign ; e = expr {
{ [ Assign { var = v ; expr = e ; pos = $startpos($2) } ] [ Assign { var = v ; expr = e ; pos = $startpos($2) } ]
} }
expr: expr:
| n = Lint { | n = Lint {