|AST's, why are they necessary? Phil@rosl.demon.co.uk (Phil) (1998-08-30)|
|Re: AST's, why are they necessary? email@example.com (Scott Stanchfield) (1998-08-31)|
|Re: AST's, why are they necessary? firstname.lastname@example.org (1998-08-31)|
|Re: AST's, why are they necessary? email@example.com (1998-09-05)|
|From:||Scott Stanchfield <firstname.lastname@example.org>|
|Date:||31 Aug 1998 03:21:56 -0400|
> 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
Then a grammar that describes the trees and gens code.
Scott Stanchfield Santa Cruz, CA USA
Return to the
Search the comp.compilers archives again.