ob-ocaml: more robust handling of complex input/output values
commitbc8d3a7704191d676028d1f6553963dc2a024d2c
authorEric Schulte <schulte.eric@gmail.com>
Fri, 16 Jul 2010 22:00:11 +0000 (16 15:00 -0700)
committerEric Schulte <schulte.eric@gmail.com>
Fri, 16 Jul 2010 22:23:15 +0000 (16 15:23 -0700)
tree3ec2d066b2a8fb4160473def86a1217431cc17bd
parent851611291ce600926bb2a3fb52b77ba6bf6de341
ob-ocaml: more robust handling of complex input/output values

* lisp/ob-ocaml.el (org-babel-expand-body:ocaml): now able to
  initialize complex ocaml values without error

  (org-babel-execute:ocaml): more sophisticated parsing of results,
  only grabbing the line immediately preceding the eoe indicator

  (org-babel-ocaml-elisp-to-ocaml): a new function for converting
  complex elisp values like lists to ocaml syntax

  (org-babel-ocaml-read-array): quoting arrays so that they aren't
  interpreted as function calls
lisp/ob-ocaml.el