<div>Hi Doug, Chris, John, et. all,</div>
<div> </div>
<div>Any thoughts on making this a sample?</div>
<div> </div>
<div>I will probably rewrite it to avoid some of the collected state.  I've enclosed an updated version that now binds enums too.</div>
<div> </div>
<div>Óscar,</div>
<div> </div>
<div>> The test files could be included on a subdirectory of examples/LuaBindings and optionally build them, or just leave them there for illustration.<br></div>
<div>This would require embedding the Lua sources in the Clang tree, which they probably wouldn't want.  But I could embed some sample files to be bound, tests, and perhaps the glue for the Lua stuff, such that a person would just have to plug in the Lua code somewhere.</div>

<div> </div>
<div>-John<br></div>
<div class="gmail_quote">On Mon, Feb 21, 2011 at 11:33 AM, John Thompson <span dir="ltr"><<a href="mailto:john.thompson.jtsoftware@gmail.com">john.thompson.jtsoftware@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Hi,</div>
<div> </div>
<div>I've been working on a plugin to generate Lua binding to C/C++ functions, variables, classes, and structures.</div>
<div> </div>
<div>Would you have any interest in my checking it in under clang/examples as an example plugin?</div>
<div> </div>
<div>The enclosed zip file contains two directory trees.  The one under llvm is the plugin.  The one under luatest is a test/example program.  I would not check-in the latter tree, because of it's Lua dependency, but I would make it available elsewhere.</div>

<div> </div>
<div>I'm still working on the plug-in, and will be creating a better test mechanism for it.</div>
<div> </div>
<div>I also welcome any feedback on it, as I don't really have any experience doing Lua bindings or Clang plugins.</div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div>-John<br clear="all"><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a><br><br></div></blockquote></div><br><br clear="all"><br>-- <br>
John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br>