[cfe-dev] Support a new C-like language by libclang?
Nikola Smiljanic
popizdeh at gmail.com
Tue Jan 6 16:16:02 PST 2015
Yes, you'd have to modify clang to lex/parse/sema your
keywords/extensions/whatever.
On Wed, Jan 7, 2015 at 10:15 AM, Jovi Zhangwei <jovi.zhangwei at gmail.com>
wrote:
> Hi,
>
> I'm new to clang world, here I have one question about libclang or
> libtooling, I would be very appreciate if anyone can help me.
>
> Currently I want to develop a new language, which is C like, just some new
> syntax sugars on top of C language, I can modify clang lexer code to make
> that, or I can use translator, but if this requirement can be done by
> libclang or libtooling, that's perfect simple for me.
>
> My direct impression is there have no way to change language syntax by
> libclang/libtooling, libclang/libtooling only can parse and analysis on C
> family language, no chance to support other language by library, is this
> correct?
>
> Thank you.
>
> Jovi
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150107/6f3e248b/attachment.html>
More information about the cfe-dev
mailing list