mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 07:38:46 +00:00
add printFromeSpace
This commit is contained in:
parent
638c03d660
commit
7fe035d494
13 changed files with 1148 additions and 45 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
|
||||
| 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]
|
||||
(* (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]) *)
|
||||
|
||||
| Expr.Skip -> env, false, []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue