summaryrefslogtreecommitdiff
path: root/src/ocaml_backend.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/ocaml_backend.ml')
-rw-r--r--src/ocaml_backend.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ocaml_backend.ml b/src/ocaml_backend.ml
index 91cd288b..60a34273 100644
--- a/src/ocaml_backend.ml
+++ b/src/ocaml_backend.ml
@@ -287,6 +287,7 @@ let rec ocaml_exp ctx (E_aux (exp_aux, _) as exp) =
(string ("let rec loop " ^ zencode_string (string_of_id id) ^ " =") ^//^ loop_body)
^/^ string "in"
^/^ (string "loop" ^^ space ^^ ocaml_atomic_exp ctx exp_from)
+ | E_cons (x, xs) -> ocaml_exp ctx x ^^ string " :: " ^^ ocaml_exp ctx xs
| _ -> string ("EXP(" ^ string_of_exp exp ^ ")")
and ocaml_letbind ctx (LB_aux (lb_aux, _)) =
match lb_aux with