emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-babel and OCaml - help?
@ 2010-07-16 15:12 Erik L. Arneson
  2010-07-16 19:59 ` [PATCH] Fix list assignments in ob-ocaml.el Erik L. Arneson
  2010-07-16 22:30 ` org-babel and OCaml - help? Eric Schulte
  0 siblings, 2 replies; 10+ messages in thread
From: Erik L. Arneson @ 2010-07-16 15:12 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi everybody,

I have just started playing around with org-babel, and it's really
awesome!  I've had great luck with emacs-lisp source blocks, and when I
saw that OCaml source blocks were also supported, I started testing
those out.  Right away I ran into trouble, though.  Observe the example
below:

--8<---------------cut here---------------start------------->8---
#+tblname: example-table
| 1 | 2 |
| 2 | 3 |
| 3 | 5 |
| 4 | 6 |

#+source: ocaml-length
#+begin_src ocaml :var table=example-table
  List.length table
#+end_src

#+results: ocaml-length
: Characters 14-15:
:   let table = ((1 2) (2 3) (3 5) (4 6));
:                 ^
: Error: This expression is not a function; it cannot be applied

#+results: ocaml-length
--8<---------------cut here---------------end--------------->8---

It looks as though the 'table' variable is being passed as Lisp code
instead of OCaml.  Is there something that my setup is missing, or does
the OCaml code perhaps need more help?  Maybe I did something wrong?

(I'd love to work on fixing up the OCaml interface, if that's needed.)

-- 
Erik Arneson <dybbuk-qPb3x58jdZkAvxtiuMwx3w@public.gmane.org>
  GPG Key ID: 1024D/62DA1D25
  Office: +1.541.291.9776
  Skype: callto://pymander


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-07-21 22:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-16 15:12 org-babel and OCaml - help? Erik L. Arneson
2010-07-16 19:59 ` [PATCH] Fix list assignments in ob-ocaml.el Erik L. Arneson
2010-07-16 20:59   ` Erik L. Arneson
2010-07-17 18:08     ` Eric Schulte
2010-07-17  0:41   ` Bernt Hansen
2010-07-16 22:30 ` org-babel and OCaml - help? Eric Schulte
2010-07-18 14:30   ` Erik L. Arneson
2010-07-18 17:07     ` Eric Schulte
2010-07-21 16:56       ` [babel] " Erik L. Arneson
2010-07-21 22:19         ` [babel] Re: org-babel and OCaml Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).