[LLVMdev] LLVM OCaml Tutorial
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
> > and ocamlyacc (the only thing I'm missing is the ability to assign
> > precendence to user defined binary and unary operators), and was
> > 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.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev