[antlr-interest] Using ANTLR to help translate C++ to C#

Wigg, J D wiggjd at lsbu.ac.uk
Sun Apr 9 00:54:58 PDT 2006


There is a C++ parser available on the antlr.org website,
http://ww.antlr.org/grammar/list which you could instrument to detect
where changes needed to be made.
 
However, it doesn't automatically write all the input to another file
(so that you could include your changes automatically) though I
suppose this could be done.
 
It rather depends on how extensive the alterations are going to be to
see if it is worth going down this route.
 
David Wigg
London South Bank University
UK
 
>From antlr-interest Digest Vol 17, Issue 11
Message: 3
Date: Sat, 8 Apr 2006 13:11:16 -0400
From: "Joshua Gough" <jsgough at gmail.com>
Subject: [antlr-interest] Using ANTLR to help translate C++ to C#
To: antlr-interest at antlr.org
Message-ID:
        <21c992360604081011y3bf475a5t898cd5390203c2e5 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello,

I have some files that have a large amount of business logic
implemented in
C++ / COM. For performance reasons, I may need to convert these to C#
to
avoid COM interop performance issues. Manually doing this would
involve
removing some macros, removing some com-specific try/catch statements,
and
transitioning some pointers to first-class return values. The business
logic
will stay almost 100% the same though.

I was wondering if using ANTLR might be a way to help automate this
task.
Does anyone have any suggestions on the feasisbility of that?

Thanks,
Josh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060409/66b1113e/attachment.html


More information about the antlr-interest mailing list