mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-08 07:48:47 +00:00
Buggy
This commit is contained in:
parent
9e78762a3a
commit
638c03d660
1 changed files with 3 additions and 3 deletions
|
|
@ -263,10 +263,10 @@ let compile (defs, p) =
|
|||
add_code (compile_expr lsv env e) lsv false [CALL (".stringval", 1)]
|
||||
|
||||
| Expr.Assign (x, e) -> let lassn, env = env#get_label in
|
||||
(match x with
|
||||
(*(match x with
|
||||
| Expr.Ref x -> add_code (compile_expr lassn env e) lassn false [ST x]
|
||||
| _ -> add_code (compile_list lassn env [x; e]) lassn false [match x with Expr.ElemRef _ -> STA | _ -> STI]
|
||||
)
|
||||
| _ ->*) add_code (compile_list lassn env [x; e]) lassn false [match x with Expr.ElemRef _ -> STA | _ -> STI]
|
||||
(*--) *)
|
||||
|
||||
| Expr.Skip -> env, false, []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue