[Mono-list] Implementing attribute-based code generation
Rodrigo B. de Oliveira
rbo@acm.org
Wed, 12 Jan 2005 22:42:53 -0200
Have you seen boo[1] yet?
It sounds like you are talking about what we call syntactic attributes.
Best wishes,
Rodrigo
[1] http://boo.codehaus.org/
> -----Original Message-----
> From: mono-list-admin@lists.ximian.com
> [mailto:mono-list-admin@lists.ximian.com] On Behalf Of Stephen Touset
> Sent: Wednesday, January 12, 2005 9:48 PM
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Implementing attribute-based code generation
>
> I'm looking into the potential of writing code to allow mono
> to have extensions. As a first foray into the idea, I'm going
> to try writing a module that would look for specific
> attributes on methods and classes, and use those to generate
> code that would go into the marked methods and all methods of
> the marked classes, respectively.
>
> However, looking at the mono source code, it seems to be very complex.
> I'm looking for hints as to the best place to put the hooks
> for the extension, because of this. My first idea would be to
> put this after the parsing of the source tree, so that I can
> manipulate the methods as they're in memory. However, I can't
> seem to find simple ways to navigate through the memory
> representation of the source tree. Can anyone give me a brief
> pointer to where I should be looking?
>
> --
> Stephen Touset <stephen@touset.org>
>