<div dir="ltr">2013/7/9 João Matos <span dir="ltr"><<a href="mailto:ripzonetriton@gmail.com" target="_blank">ripzonetriton@gmail.com</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><span style="color:rgb(34,34,34)">I've done this in a C++/CLI Clang implementation I've been working on. It generates AST nodes directly from .NET types read from assemblies. I would not say it was extremely complicated, but definitely tricky. There are a lot of things that are not obvious and you will only find out about them when the code crashes inside Clang internals, but if you're not afraid of debugging it's pretty doable.</span><br>
</div><div class="gmail_quote">

<div><br></div><div>In case anyone is interested to look at the code: <a href="https://github.com/tritao/clang/blob/master/lib/Sema/SemaCLI.cpp" target="_blank">https://github.com/tritao/clang/blob/master/lib/Sema/SemaCLI.cpp</a></div>
</div></blockquote><div><br></div><div style>That sounds quite interesting, as I want to enable that programming language to call into .NET code. As I can see from your posted SemaCLI.cpp, you seem to be using Mono for it. Is Mono a strong requirement, or is possible to use it with Microsoft 's.NET implementation? Also, what other third party dependencies does your project require?</div>
<div style><br></div><div style>Greetings,</div><div style><br></div><div style>Daniel Albuschat</div><div style><br></div><div style>(P.S.: Is answering to the author of a message and cc'ing clang-dev OK in this group, or should I remove the receipient and put clang-dev into "to:"?)</div>
</div></div></div>