[antlr-interest] cool idea

blah blah trigonometric at softhome.net
Fri Aug 30 10:42:56 PDT 2002


thanks
----- Original Message -----
From: John D. Mitchell <johnm-antlr at non.net>
To: <antlr-interest at yahoogroups.com>
Sent: Friday, August 30, 2002 5:13 PM
Subject: [antlr-interest] cool idea


> >>>>> "blah" == blah blah <trigonometric at softhome.net> writes:
> [...]
> > I was thinking that if somebody designed some kind of standard AST way
to
> > represent a program such that any program in any language could be
> > represented by this type of AST then one could create translators from
> > lots of languages to create this AST and then translators from the AST
to
> > lots of languages so that translation from any language to any language
> > would be possible.
>
> Check out the comp.compilers newsgroup's archives.  Plenty of discussion
> about this sort of thing.  Hint: one thing to search for is "ANDF".
>
> Basically, the general case isn't possible (to be high-level (i.e., highly
> leveraged), general purpose across a wide variety of languages, reasonably
> "performant", etc.) due to e.g., the wildly differing semantics.
>
> Note that a very painful, practical problem in this task is that of the
> "portability" of all of the (core) libraries for the languages that you
> want to support.  The designs and usages of those libraries are quite
> critical (since they are, in essence, extensions of their languages).
>
> It is, however, quite possible to create such things for a constrained set
> of languages (i.e., a "family" of languages).
>
> Hope this helps,
> John
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list