|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)|
|Date:||30 Aug 1998 10:22:22 -0400|
I am writing translators to convert about 20 robot languages into our
own proprietary language (a derivative of VB), and on advice I have
been looking into using AST's. However, why would, in this case an
AST give us an advantage over just hand coding the actions into
fprintf statements (for example).
I should stress that speed of development is paramount over speed of
[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. You can do consistency
checks and rewrites on ASTs that aren't practical without an internal
data structure. -John]
Return to the
Search the comp.compilers archives again.