<div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 27, 2012 at 11:56 AM, Sebastian Redl <span dir="ltr"><<a href="mailto:sebastian.redl@getdesigned.at" target="_blank">sebastian.redl@getdesigned.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="h5"><br><div><div>On 27.04.2012, at 19:43, Madrigal, Juan A wrote:</div>
<br><blockquote type="cite">



<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi,</div>
<div><br>
</div>
<div>Just out of curiosity has the possibility of brining in C# support (minus .Net) to clang/LLVM been discussed?</div>
<div><br>
</div>
<div>Here's and interesting project: <a href="http://blog.prabir.me/post/LLVM-e28093-Native-C-Compiler.aspx" target="_blank">http://blog.prabir.me/post/LLVM-e28093-Native-C-Compiler.aspx</a></div>
<div><br>
</div>
<div>Thoughts?</div>
</div></blockquote><br></div></div></div><div>While a C# -> LLVM compiler is an interesting project (though hard - there's a lot of runtime library stuff that you would have to reimplement if you forsake existing .Net implementations), Clang has nothing to do with it. C# is sufficiently different from the core C family that there's really no point in trying to reuse Clang.</div>
</div></blockquote></div><br></div><div class="gmail_extra">I agree that extending Clang to parse C# is unlikely to be a natural fit; C# is a very distant cousin of the C language family, and there are enough significant differences that a separate compiler would probably be cleaner. However, if we wanted a C# compiler to be part of the LLVM project, it might make sense to make available certain parts of clang for its use (such as the source manager, diagnostics system, and driver infrastructure, and possibly the lexer). Most of these are components which could also be beneficially shared with other LLVM subprojects (lld, for instance).</div>