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

2014-03-29 Thread Nicolas Goaziou
Alan Schmitt 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-29 Thread Alan Schmitt
Nicolas Goaziou writes: > Alan Schmitt writes: > > +(mapcar #'org-babel-trim (reverse raw))) > + (raw (org-babel-trim clean)) > + (result-params (cdr (assoc :result-params params))) > + (parsed > + (string-match > +"\\(\\(.*\n\\)

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

2014-03-29 Thread Nicolas Goaziou
Alan Schmitt writes: + (mapcar #'org-babel-trim (reverse raw))) +(raw (org-babel-trim clean)) +(result-params (cdr (assoc :result-params params))) +(parsed + (string-match + "\\(\\(.*\n\\)*\\)[^:\n]+ : \\([^=\n]+\\) =

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

2014-03-29 Thread Alan Schmitt
Nicolas Goaziou writes: > Hello, > > Alan Schmitt 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
Hello, Alan Schmitt 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 Bastien
Hi Alan, Alan Schmitt 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 Alan Schmitt
Hello, Alan Schmitt 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 moment I only check f

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 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 OCaml code block

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

2014-03-23 Thread Eric Schulte
Alan Schmitt 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 the value being

[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 e