Function: org-babel-ocaml-parse-output
org-babel-ocaml-parse-output is a byte-compiled function defined in
ob-ocaml.el.gz.
Signature
(org-babel-ocaml-parse-output VALUE TYPE)
Documentation
Parse VALUE of type TYPE.
VALUE and TYPE are string output from an ocaml process.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-ocaml.el.gz
(defun org-babel-ocaml-parse-output (value type)
"Parse VALUE of type TYPE.
VALUE and TYPE are string output from an ocaml process."
(cond
((string= "string" type)
(org-babel-read value))
((or (string= "int" type)
(string= "float" type))
(string-to-number value))
((string-match "list" type)
(org-babel-ocaml-read-list value))
((string-match "array" type)
(org-babel-ocaml-read-array value))
(t (message "don't recognize type %s" type) value)))