Re: Books on compiler backends?

Jyrki Saarinen <jyrki@NOSPAMwelho.com.invalid>
Sat, 9 Feb 2008 11:06:28 +0000 (UTC)

          From comp.compilers

Related articles
Books on compiler backends? kaleb.pederson@gmail.com (Kaleb Pederson) (2008-02-05)
Re: Books on compiler backends? jyrki@NOSPAMwelho.com.invalid (Jyrki Saarinen) (2008-02-09)
Re: Books on compiler backends? kaleb.pederson@gmail.com (Kaleb Pederson) (2008-02-11)
| List of all articles for this month |

From: Jyrki Saarinen <jyrki@NOSPAMwelho.com.invalid>
Newsgroups: comp.compilers
Date: Sat, 9 Feb 2008 11:06:28 +0000 (UTC)
Organization: No-org
References: 08-02-025
Keywords: books, code
Posted-Date: 10 Feb 2008 17:28:39 EST

Kaleb Pederson <kaleb.pederson@gmail.com> wrote:


> Given my AST's, I now need to be able to handle tree transformations
> as I manipulate everything towards my target language. I've been
> trying to figure out things like the following:
>
> * if I should manually walk/manipulate the tree or use a tree grammar
> with a supporting tool (such as ANTLR's generated tree
> parser/rewriter)


Take a look at the SableCC. It produces standard Visitor design pattern code
after you have described the structure of your AST (it does it even without,
but that's not likely to be very useful).


--
Jyrki Saarinen
http://koti.welho.com/jsaari88/



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.