[LLVMdev] LLVM OCaml Tutorial

Chris Wailes chris.wailes at gmail.com
Sun Apr 19 21:15:34 PDT 2009

I would consider doing this, but one of the main reasons I couldn't use the
main tutorial was because the Fedora 10 camlp4 package was messed up and the
pre processors weren't linked correctly (I don't think Fedora likes OCaml
much).  Anyway, I think it might be best to not include camlp4 macros in the
parser, simply to reduce the number of tools that someone needs to know to
understand the files.  If they know camlp4 they can always add support for
it in their own projects or as an exercise in understanding the tutorial

- Chris Wailes

On Sun, Apr 19, 2009 at 6:02 AM, Jon Harrop <jon at ffconsultancy.com> wrote:

> On Tuesday 14 April 2009 01:29:44 Chris Wailes wrote:
> > I have managed to adapt almost all of the tutorial code into using
> ocamllex
> > and ocamlyacc (the only thing I'm missing is the ability to assign
> > precendence to user defined binary and unary operators), and was
> wondering
> > if ther would be an interest in adding my code as supplimental material.
> Yes! I thought it was a bit of a shame that so much precious LLVM tutorial
> space was devoted to lexing and parsing without using appropriate tools.
> You may also want to write an even smaller parser using camlp4...
> --
> Dr Jon Harrop, Flying Frog Consultancy Ltd.
> http://www.ffconsultancy.com/?e
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090420/d770e44d/attachment.html>

More information about the llvm-dev mailing list