Using AOP for writing compilers. - Compilers

This is a discussion on Using AOP for writing compilers. - Compilers ; Given that Aspect Oriented Programming seems to mainly be about separating cross-cutting concerns, it seems like an ideal paradigm for compiler writing. However, after several Google searches, I was unable to find any documentation or references on any attempts to ...

+ Reply to Thread
Results 1 to 2 of 2

Using AOP for writing compilers.

  1. Default Using AOP for writing compilers.

    Given that Aspect Oriented Programming seems to mainly be about
    separating cross-cutting concerns, it seems like an ideal paradigm for
    compiler writing. However, after several Google searches, I was unable
    to find any documentation or references on any attempts to use AOP for
    compiler writing other than this essay on TreeCC:
    http://www.southern-storm.com.au/treecc_essay.html

    The essay is rather short and light, and a lot of the problems the
    author mentions about the other approaches that drove him/her to AOP
    simply weren't big issues for me.

    I guess what I'm getting at is that while it might be interesting
    to try an AOP approach, the benefits (for example in clarity or
    modularity of source code) do not seem to be so great as to be worth,
    for example, rewriting an existing compiler.

    Are there any other papers out there on using AOP for compiler
    writing? Preferably ones which specifically look at what benefits AOP
    brings to the table?

    - Oliver


  2. Default Re: Using AOP for writing compilers.

    Yes, AOP can bring lots of benefits for compiler writing. Please check
    out the paper

    "Separation of Concerns in Compiler Development Using
    Aspect-Orientation",
    http://www.cis.uab.edu/gray/Pubs/sac-2006-carl.pdf

    I believe that is exactly what you are looking for.

    Carl Wu
    wuxi@cis.uab.edu

    Oliver Wong wrote:
    > Given that Aspect Oriented Programming seems to mainly be about
    > separating cross-cutting concerns, it seems like an ideal paradigm for
    > compiler writing. However, after several Google searches, I was unable
    > to find any documentation or references on any attempts to use AOP for
    > compiler writing other than this essay on TreeCC:
    > http://www.southern-storm.com.au/treecc_essay.html
    >
    > The essay is rather short and light, and a lot of the problems the
    > author mentions about the other approaches that drove him/her to AOP
    > simply weren't big issues for me.
    >
    > I guess what I'm getting at is that while it might be interesting
    > to try an AOP approach, the benefits (for example in clarity or
    > modularity of source code) do not seem to be so great as to be worth,
    > for example, rewriting an existing compiler.
    >
    > Are there any other papers out there on using AOP for compiler
    > writing? Preferably ones which specifically look at what benefits AOP
    > brings to the table?
    >
    > - Oliver


+ Reply to Thread

Similar Threads

  1. Please add these C# compilers to the list of open source compilers
    By Application Development in forum Compilers
    Replies: 3
    Last Post: 05-22-2006, 01:09 AM
  2. Writing Compilers in Functional Languages
    By Application Development in forum Compilers
    Replies: 13
    Last Post: 05-13-2005, 05:03 PM
  3. Looking for PL/I compilers for PC
    By Application Development in forum Compilers
    Replies: 1
    Last Post: 03-08-2005, 09:22 AM
  4. Re: [compilers] The daily compilers digest V17 #130
    By Application Development in forum Compilers
    Replies: 0
    Last Post: 02-28-2005, 12:47 AM
  5. New, spiffier comp.compilers web site at http://compilers.iecc.com
    By Application Development in forum Compilers
    Replies: 0
    Last Post: 12-13-2004, 03:27 AM