summaryrefslogtreecommitdiff
path: root/src/value.ml
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-06-13 21:26:35 +0100
committerAlasdair Armstrong2018-06-13 21:26:35 +0100
commit4b6732fdddebc07f072e012a52f7d9541e4d657c (patch)
treeea66e08af8607e64ac95f3631cfefc4e8bf577f8 /src/value.ml
parentd96cd3e8d74b303ff89716294d173754c70cd6b7 (diff)
Tracing instrumentation for C backend
Diffstat (limited to 'src/value.ml')
-rw-r--r--src/value.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/value.ml b/src/value.ml
index 8ee219b7..41b52720 100644
--- a/src/value.ml
+++ b/src/value.ml
@@ -491,6 +491,9 @@ let primops =
StringMap.empty
[ ("and_bool", and_bool);
("or_bool", or_bool);
+ ("print", value_print);
+ ("prerr", fun vs -> (prerr_endline (string_of_value (List.hd vs)); V_unit));
+ ("dec_str", fun _ -> V_string "X");
("print_endline", value_print);
("prerr_endline", fun vs -> (prerr_endline (string_of_value (List.hd vs)); V_unit));
("putchar", value_putchar);