How to design my own annotation language?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to design my own annotation language?

hunter
Hi All,

I hope to have a try to design some annotations for C or C++. But I am new to Clang and wandering where I should start with, e.g. how to parse the annotations and how the compiler react at compiler-time when it sees the annotations. Could anyone give some advice?

Thanks in advance!

Best,
Chen
Reply | Threaded
Open this post in threaded view
|

Re: How to design my own annotation language?

Caitlin Sadowski
You may find the following link helpful:

http://clang.llvm.org/docs/InternalsManual.html#AddingAttributes

Cheers,

Caitlin

On Thu, Jul 7, 2011 at 4:12 PM, hunter <[hidden email]> wrote:

> Hi All,
>
> I hope to have a try to design some annotations for C or C++. But I am new
> to Clang and wandering where I should start with, e.g. how to parse the
> annotations and how the compiler react at compiler-time when it sees the
> annotations. Could anyone give some advice?
>
> Thanks in advance!
>
> Best,
> Chen
>
> --
> View this message in context: http://clang-developers.42468.n3.nabble.com/How-to-design-my-own-annotation-language-tp3149984p3149984.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev