[antlr-interest] Re: (in)sanity check
ljw10001
ljw1001 at hotmail.com
Mon Apr 19 14:27:16 PDT 2004
I looked at Ephedra, but apparently it requires a VisualAge C++
compiler that runs only on AIX. If it worked, it might be worth the
expense of buying an AIX machine but I have no way to evaluate it.
--- In antlr-interest at yahoogroups.com, "lgcraymer" <lgc at m...> wrote:
> Check out
> http://ovid.tigris.org/Ephedra/
>
> --Loring
>
>
> --- In antlr-interest at yahoogroups.com, "ljw10001" <ljw1001 at h...>
wrote:
> > I'm about to begin a project to port 400K LOC of C++ code to
Java.
> > To the greatest extent possible, we want to do a line by line
port
> > and, if possible I would like to automate some part of that
effort.
> >
> > What I have in mind is to use ANTLR/Sorcerer to do a rough
> > translation.
> >
> > If I'm reading the various documents, articles, etc. correctly,
there
> > is a C++ grammar available that ANTLR can use to create a parse
tree
> > and also a Sorcerer description for Java that can read a
(different)
> > parse tree and generate java code. Presumably the first tree
could be
> > mapped to the second, or we could modify the Sorcerer description
by
> > hand to use the tree generated from the C++ source.
> >
> > I'm not expecting the result to compile. In fact I would be happy
to
> > output C++ with some of the code selectively replaced by Java
> > equivalents. Anything that would reduce the amount of manual
> > translation noticably would be useful.
> >
> > So, am I completely insane to attempt this with ANTLR?
Suggestions
> > for better ways to approach the problem would be greatly
appreciated.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list