Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Alan Schmitt
Hello, Alan Schmitt alan.schm...@polytechnique.org writes: Hello, Here is a patch that allows for the output of ocaml babel blocks to be captured. It also makes the parsing of the resulting value more robust: results of type string list are now converted to a table, for instance. At the

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Bastien
Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: Should I push this patch? Please go ahead, -- Bastien

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Nicolas Goaziou
Hello, Alan Schmitt alan.schm...@polytechnique.org writes: Should I push this patch? Nitpick: it is better to remove the dangling parenthesis prior to this. Thanks. Regards, -- Nicolas Goaziou

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Alan Schmitt
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Alan Schmitt alan.schm...@polytechnique.org writes: Should I push this patch? Nitpick: it is better to remove the dangling parenthesis prior to this. Thanks. I'm sorry, but I don't see a dangling parenthesis. Where is it? Thanks, Alan

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Nicolas Goaziou
Alan Schmitt alan.schm...@polytechnique.org writes: + (mapcar #'org-babel-trim (reverse raw))) +(raw (org-babel-trim clean)) +(result-params (cdr (assoc :result-params params))) +(parsed + (string-match +

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Alan Schmitt
Nicolas Goaziou n.goaz...@gmail.com writes: Alan Schmitt alan.schm...@polytechnique.org writes: +(mapcar #'org-babel-trim (reverse raw))) + (raw (org-babel-trim clean)) + (result-params (cdr (assoc :result-params params))) + (parsed +

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-29 Thread Nicolas Goaziou
Alan Schmitt alan.schm...@polytechnique.org writes: OK, I put it on the previous line. I'll commit now. Thank you. -- Nicolas Goaziou

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-26 Thread Alan Schmitt
Hello, Here is a patch that allows for the output of ocaml babel blocks to be captured. It also makes the parsing of the resulting value more robust: results of type string list are now converted to a table, for instance. At the moment I only check for results of the form verbatim or output

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-24 Thread Alan Schmitt
Eric Schulte schulte.e...@gmail.com writes: You can step through the execution of `org-babel-execute:ocaml' by first evaluating the function with a prefix argument (meaning with the cursor within the function body press C-u C-A-x) which will edebug [1] the function. You can then evaluate an

Re: [O] I need help extending ob-ocaml to support :results output

2014-03-23 Thread Eric Schulte
Alan Schmitt alan.schm...@polytechnique.org writes: Hello, It seems that ob-ocaml does not support :results output. For instance, evaluating the following block: #+begin_src ocaml :results output Printf.printf foo\nbar\n;; #+end_src Does not result in the two lines foo and bar but in

[O] I need help extending ob-ocaml to support :results output

2014-03-21 Thread Alan Schmitt
Hello, It seems that ob-ocaml does not support :results output. For instance, evaluating the following block: #+begin_src ocaml :results output Printf.printf foo\nbar\n;; #+end_src Does not result in the two lines foo and bar but in the value being returned. Unfortunately I don't know enough