Re: AST's, why are they necessary?

Scott Stanchfield <thetick@magelang.com>
31 Aug 1998 03:21:56 -0400

          From comp.compilers

Related articles
AST's, why are they necessary? Phil@rosl.demon.co.uk (Phil) (1998-08-30)
Re: AST's, why are they necessary? thetick@magelang.com (Scott Stanchfield) (1998-08-31)
Re: AST's, why are they necessary? jamz@my-dejanews.com (1998-08-31)
Re: AST's, why are they necessary? friwi@prosun.first.gmd.de (1998-09-05)
| List of all articles for this month |
From: Scott Stanchfield <thetick@magelang.com>
Newsgroups: comp.compilers
Date: 31 Aug 1998 03:21:56 -0400
Organization: MageLang Institute
References: 98-08-200
Keywords: parse, design

> Moderator: [If you just want to do a quick hack, hand coding will certainly work.
> But I suspect that if you have 20 input languages, you'll find that
> turning them into ASTs, and then using a common back end to emit the
> VB will be less work and easier to debug.]


Not to mention, there are many tools out there that will parse trees
(like ANTLR/Sorcerer). Writing a declarative spec for tree walking is
much easier to maintain than several walking methods all over the
place in trees.


You can start with one or more grammar that describes the language and
generates trees.


Then a grammar that describes the trees and gens code.


-- Scott


Scott Stanchfield Santa Cruz, CA USA
    thetick@magelang.com http://www.jguru.com/thetick
--


Post a followup to this message

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