I had to google 4Test and found out it is an object-oriented language similar to C++.

If you look around you will not find any complete language converters between perl, java, c++, python... because that is far from trivial. Only writing a parser for such a language is a project that is measured in months

Your only hope may be to concentrate on a subset of the language and accept failure on some scripts, maybe even accept that translations may be defect without being able to detect that.

For parsing I can recommend Parse::RecDescent, as long as the language is highly structured. I wouldn't want to parse perl itself with RecDescent, but a clean parser-friendly language or a suitable subset might be acceptable


In reply to Re: Parsing and Translation by jethro
in thread Parsing and Translation by speedyshady

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.