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 code.<br>
<br>- Chris Wailes<br><br><div class="gmail_quote">On Sun, Apr 19, 2009 at 6:02 AM, Jon Harrop <span dir="ltr"><<a href="mailto:jon@ffconsultancy.com">jon@ffconsultancy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tuesday 14 April 2009 01:29:44 Chris Wailes wrote:<br>
> I have managed to adapt almost all of the tutorial code into using ocamllex<br>
> and ocamlyacc (the only thing I'm missing is the ability to assign<br>
> precendence to user defined binary and unary operators), and was wondering<br>
> if ther would be an interest in adding my code as supplimental material.<br>
<br>
</div>Yes! I thought it was a bit of a shame that so much precious LLVM tutorial<br>
space was devoted to lexing and parsing without using appropriate tools.<br>
<br>
You may also want to write an even smaller parser using camlp4...<br>
<font color="#888888"><br>
--<br>
Dr Jon Harrop, Flying Frog Consultancy Ltd.<br>
<a href="http://www.ffconsultancy.com/?e" target="_blank">http://www.ffconsultancy.com/?e</a><br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</font></blockquote></div><br>